Git Product home page Git Product logo

Comments (4)

jlesage avatar jlesage commented on August 18, 2024

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.

salamander2 avatar salamander2 commented on August 18, 2024

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.

jlesage avatar jlesage commented on August 18, 2024

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.

salamander2 avatar salamander2 commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.