Comments (4)
You are not using the correct image tag. You probably want to use ubuntu-20.04-v4
.
So your Dockerfile should have:
FROM jlesage/baseimage-gui:ubuntu-20.04-v4
from docker-baseimage-gui.
Yep. That did it!
I did find out one other peculiarity which might need fixing.
Dockerfile:
COPY startapp.sh /startapp.sh
RUN chmod 755 /startapp.sh
Yes. I have to add "chmod 755" otherwise it does not work, EVEN THOUGH /etc/cont-init.d/00-app-script.sh
claims to set the permissions to 755. I've tested it setting my host file permissions to 644.
Here's the content of /etc/cont-init.d/00-app-script.sh
(which doesn't seem to work as intended):
#!/usr/bin/with-contenv sh
#
# Make sure the startapp.sh has execution permission.
#
set -e # Exit immediately if a command exits with a non-zero status.
set -u # Treat unset variables as an error.
if [ -e /startapp.sh ] ; then
chmod 755 /startapp.sh
sync
fi
# vim:ft=sh:ts=4:sw=4:et:sts=4
Anyway, this is now a moot point because you can just put "startapp.sh" permanently in your baseimage-gui and set the permissions as well before you create your image. Users will never have to modify/copy it again.
from docker-baseimage-gui.
Humm /etc/cont-init.d/00-app-script.sh
is not part of the baseimage...
In your source tree, startapp.sh
should already have execute permission.
from docker-baseimage-gui.
Humm /etc/cont-init.d/00-app-script.sh is not part of the baseimage...
Strange. I didn't add it.
Anyway, I think the best thing to do is to add this to the Dockerfile and it will prevent any potential problems.
RUN chmod 755 /startapp.sh
from docker-baseimage-gui.
Related Issues (20)
- Filepicker HOT 1
- Alpine mirrors support HOT 3
- Maximize Windows Does not Work Sometimes HOT 1
- Set remote resizing as default HOT 3
- add license? HOT 2
- Failed to connect to socket /var/run/dbus/system_bus_socket HOT 7
- Request for VLC media player
- 32bit or i386 version. HOT 3
- Zram? HOT 9
- Openbox not launching / no error shown HOT 2
- [Feature Request] Add image based on debian-slim HOT 2
- Add a link to your dockerhub into readme HOT 1
- QR Code HOT 2
- Add specific user for app HOT 3
- "Failed to connect" HOT 10
- Question: maximise only main window HOT 2
- Change the time until the SIGKILL signal. HOT 2
- Persistent Data Storage Issue with Ratioghost Docker Container HOT 2
- Xvnc service fails to start HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-baseimage-gui.