Skip to content
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

Fix Docker image #399

Merged
merged 12 commits into from
Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v3
with:
context: "{{ defaultContext }}:docker"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
13 changes: 7 additions & 6 deletions docker/dockerfile → dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ RUN pip install --upgrade pip && \
pip install --upgrade astropy && \
pip install --ignore-installed PyYAML

# Copy checked out package code to appropriate destination in image.
WORKDIR /root/graphnet
# Install GraphNeT and required dependencies.
# -- Via pip
#RUN pip install -r https://github.com/raw/com/graphnet-team/graphnet/main/requirements/torch_${HARDWARE}.txt
#RUN pip install -e git+https://github.com/icecube/graphnet.git#egg=graphnet[develop,torch]

# -- Using current source
WORKDIR /root/graphnet/
ADD . /root/graphnet/

# Install GraphNeT and required dependencies.
RUN pip install -r requirements/torch_${HARDWARE}.txt
RUN pip install -e .[develop,torch]

Expand All @@ -35,8 +39,5 @@ RUN echo 'alias python="python3"' >> ~/.bashrc
RUN echo 'PS1="🐳 \[\033[38;2;86;138;242m\]graphnet@\h \[\033[0m\]❯ \[\033[0;34m\]\w \[\033[0m\]\$ "' >> ~/.bashrc
RUN echo 'PS2="\[\033[38;5;236m\]❯\[\033[38;5;239m\]❯\[\033[0m\]❯ "' >> ~/.bashrc

# Enable colours in terminal.
#ENV TERM xterm-256color

# Default command for executing container.
CMD [ "/bin/bash" ]