Skip to content

Commit

Permalink
👷 build(gitpod): add apt-cleans to reduce size and install tw-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
kenibrewer committed Oct 27, 2024
1 parent 6b6f95b commit 77c234f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ RUN apt-get update --quiet && \
curl \
tree \
graphviz \
software-properties-common

software-properties-common && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Taken from: https://github.com/nf-core/tools/blob/master/nf_core/gitpod/gitpod.Dockerfile
# Install Apptainer (Singularity)
RUN add-apt-repository -y ppa:apptainer/ppa && \
apt-get update --quiet && \
apt install -y apptainer
apt install -y apptainer && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Install Conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
Expand All @@ -35,6 +38,11 @@ ENV PATH="/opt/conda/bin:$PATH"
RUN mkdir -p /workspace/data \
&& chown -R gitpod:gitpod /opt/conda /workspace/data

# Install Tower Agent
RUN curl -fSL https://github.com/seqeralabs/tower-agent/releases/latest/download/tw-agent-linux-x86_64 > tw-agent && \
chmod +x tw-agent && \
mv tw-agent /usr/local/bin/tw-agent

# Change user to gitpod
USER gitpod

Expand Down

0 comments on commit 77c234f

Please sign in to comment.