-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding python3.7 docker. Chmod +x macq/*install #85
Conversation
@haz the test just passed but this is not working yet. I guess it's not testing buidling the docker image. Not sure that's possible in your setup. |
I think it's ready now. I modify it in this way:
|
Thanks @hectorpal ! I'm now second guessing why we'd want a 4-year old base, though. @FlorianPommerening : I know I've asked before, but didn't you say the modern Ubuntu had a modern-enough Singularity to be viable for our planners? I.e., could we get away with just using Ubuntu 22.04 and installing Singularity from apt? |
I didn't try this yet, but Singularity rebranded and now is called Apptainer (http://apptainer.org/). They seem to have *.deb releases (https://github.com/apptainer/apptainer/releases) which would probably work. |
I won't have a chance until tomorrow, but my plan of attack (if you have the cycles, @hectorpal ) would be:
May need --privileged running, but for testing, just a personal comp would do. |
This Dockerfile works fine for me (changed ubuntu to 22.04 and singularity to apptainer installed from deb). It still needs FROM ubuntu:22.04
LABEL maintainer="Christian Muise ([email protected])"
# Install required packages
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
bash-completion \
ca-certificates \
git \
libseccomp-dev \
python3 \
python3-pip \
python3-venv \
squashfs-tools \
tzdata \
unzip \
vim \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/apptainer/apptainer/releases/download/v1.0.2/apptainer_1.0.2_amd64.deb \
&& dpkg -i apptainer_1.0.2_amd64.deb \
&& rm apptainer_1.0.2_amd64.deb
RUN pip3 install --upgrade pip
RUN pip3 install setuptools
# Install & setup the planutils
RUN pip3 install planutils --trusted-host pypi.org --trusted-host files.pythonhosted.org
RUN planutils setup
WORKDIR /root
# default command to execute when container starts
CMD /bin/bash |
I guess the singularity-based should work, so it's a matter of testing the binaries. I didn't see automation tooling for testing the planners are still running. Maybe it's not worth it. Maybe non-singularity package tools should add a basic test: VAL, FF. |
Awesome stuff! Things seem to work just fine with it. @hectorpal Want to merge from main, and then ping again? AFAIK, just the permissions need updating now. |
- Building was failing installing python-sat. - I tried a couple of smaller alternatives but python3 did the job. - Fixed permissions
Fixes #84
Following https://stackoverflow.com/questions/56892907/install-pip3-and-python3-7-on-docker-ubuntu-18-04
Why like this?