Skip to content
Open
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
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,26 @@ services:
args:
PY_VERSION: '3.8.13'
BUILD_THEIA: 'ON'
environment:
- "ANUBIS_GIT_COMMIT=${GIT_TAG:-latest}"
theia-base-39:
image: registry.digitalocean.com/anubis/theia-base:python-3.9
build:
context: ./theia-base
args:
PY_VERSION: '3.9.13'
BUILD_THEIA: 'ON'
environment:
- "ANUBIS_GIT_COMMIT=${GIT_TAG:-latest}"
theia-base-310:
image: registry.digitalocean.com/anubis/theia-base:python-3.10
build:
context: ./theia-base
args:
PY_VERSION: '3.10.6'
BUILD_THEIA: 'ON'
environment:
- "ANUBIS_GIT_COMMIT=${GIT_TAG:-latest}"
# theia-base-311:
# image: registry.digitalocean.com/anubis/theia-base:python-3.11
# build:
Expand Down
9 changes: 7 additions & 2 deletions theia-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
ARG NODE_VERSION=18
FROM node:${NODE_VERSION}-bullseye-slim as base

ARG ANUBIS_GIT_COMMIT=latest
ENV ANUBIS_GIT_COMMIT=${ANUBIS_GIT_COMMIT}

ARG DIST=bullseye
ENV TZ=America/New_York \
PUID=1001 \
Expand Down Expand Up @@ -128,7 +131,7 @@ RUN set -ex; \
rm -rf /var/cache/apt/*; \
rm -rf /var/lib/apt/lists/*; \
rm -rf /home/node/*; \
find / -depth \
find /usr /home /var -depth \
\( -name .cache -o -name __pycache__ -o -name '*.pyc' -o -name .git -o -name .github \) \
-exec 'rm' '-rf' '{}' '+';

Expand Down Expand Up @@ -174,7 +177,7 @@ RUN set -ex; \
rm -rf /usr/share/doc; \
rm -rf /var/lib/apt/lists/*; \
rm -rf /home/node/*; \
find / -depth \
find /usr /home /var -depth \
\( -name .cache -o -name __pycache__ -o -name '*.pyc' -o -name .git -o -name .github \) \
-exec 'rm' '-rf' '{}' '+'; \
fi
Expand All @@ -183,6 +186,8 @@ RUN set -ex; \
RUN set -ex; \
mkdir -p /etc/anubis/skel/; \
mkdir -p /etc/anubis/init.d/; \
mkdir -p /etc/anubis/commit/; \
echo ${ANUBIS_GIT_COMMIT} > /etc/anubis/commit/anubis_commit.txt; \
chsh -s /usr/bin/zsh ${USER}; \
git clone https://github.com/robbyrussell/oh-my-zsh.git /opt/oh-my-zsh; \
git clone https://github.com/Aloxaf/fzf-tab.git /opt/oh-my-zsh/custom/plugins/fzf-tab; \
Expand Down