Skip to content

Commit

Permalink
Add coder image
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad authored Jan 7, 2025
1 parent c92c08f commit 7c4ed50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
run: podman build -t ghcr.io/gbraad-devenv/fedora/systemd:41 -f containers/Containerfile-systemd .
- name: Run podman build - rdesktop
run: podman build -t ghcr.io/gbraad-devenv/fedora/rdesktop:41 -f containers/Containerfile-rdesktop .
- name: Run podman build - coder
run: podman build -t ghcr.io/gbraad-devenv/fedora/coder:41 -f containers/Containerfile-coder .
- name: Push image to ghcr.io - base
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/base:41
- name: Push image to ghcr.io - dotfiles
Expand All @@ -34,4 +36,5 @@ jobs:
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/systemd:41
- name: Push image to ghcr.io - rdesktop
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/rdesktop:41

- name: Push image to ghcr.io - coder
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/coder:41
11 changes: 5 additions & 6 deletions containers/Containerfile-coder
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ FROM ghcr.io/gbraad-devenv/fedora/systemd:${BASE_VERSION}

LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"

RUN VERSION=4.93.1 \
&& USER=gbraad \
&& curl -fOL https://github.com/coder/code-server/releases/download/v$VERSION/code-server-$VERSION-amd64.rpm \
&& rpm -i code-server-$VERSION-amd64.rpm \
&& systemctl enable code-server@$USER \
&& rm -f code-server-$VERSION-amd64.rpm
RUN VERSION=4.96.2 \
&& curl -fL https://github.com/coder/code-server/releases/download/v$VERSION/code-server-$VERSION-amd64.rpm -o code-server.rpm \
&& rpm -i code-server.rpm \
&& systemctl enable code-server@gbraad \
&& rm -f code-server.rpm

# Exposed on http://127.0.0.1:8080
# Password is in ~/.config/code-server/config.yaml

0 comments on commit 7c4ed50

Please sign in to comment.