Skip to content

Commit

Permalink
Switch to coder
Browse files Browse the repository at this point in the history
  • Loading branch information
eveld committed Sep 15, 2023
1 parent 76b1a5b commit 0c4a4b5
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 8 deletions.
24 changes: 24 additions & 0 deletions coder/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM envoyproxy/envoy:v1.20.1 as envoy

FROM codercom/code-server:4.16.1-debian

ARG TARGETARCH

RUN sudo apt update && sudo apt install -y \
curl wget zip git jq build-essential software-properties-common fonts-hack-ttf

# Install jumppad validate
RUN curl -L -o validate.zip https://github.com/jumppad-labs/validate/releases/download/v0.1.0/validate-linux-${TARGETARCH}.zip && \
unzip validate.zip && \
sudo mv validate-linux-${TARGETARCH} /usr/bin/validate && \
rm validate.zip

# Install jumppad bounce
RUN curl -L -o bounce.zip https://github.com/jumppad-labs/bounce/releases/download/v0.1.0/bounce-linux-${TARGETARCH}.zip && \
unzip bounce.zip && \
sudo mv bounce-linux-${TARGETARCH} /usr/bin/bounce && \
rm bounce.zip

COPY config/config.yaml /home/coder/.config/code-server/config.yaml

COPY entrypoint.d/* ${ENTRYPOINTD}/
9 changes: 9 additions & 0 deletions coder/config/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
bind-addr: 127.0.0.1:8080
auth: none
cert: false
disable-telemetry: true
disable-update-check: true
disable-workspace-trust: true
disable-getting-started-override: true
ignore-last-opened: true
app-name: jumppad
2 changes: 2 additions & 0 deletions coder/entrypoint.d/bounce.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
bounce install
9 changes: 9 additions & 0 deletions coder/entrypoint.d/docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# Replace the location of the terminal server with the environment vars
eval "echo \"$(cat ./envoy.yaml)\"" >> ./envoy_processed.yaml

# Run the proxy server
nohup envoy --log-path /logs/envoy.log --log-level debug -c ./envoy_processed.yaml --service-cluster front-proxy &

# Run docs in the background
npm run dev
8 changes: 0 additions & 8 deletions vscode/Dockerfile.vscode
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ FROM ghcr.io/jumppad-labs/base:debian-v0.1.0

ARG TARGETARCH

#Install nodejs
# RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
# apt install -y nodejs

# Install code server
# RUN curl -L https://aka.ms/install-vscode-server/setup.sh | sh
# RUN code-server serve-local --accept-server-license-terms --install-extension shipyard.shipyard

# Install coder/code-server
RUN curl -fsSL https://code-server.dev/install.sh | sh

Expand Down

0 comments on commit 0c4a4b5

Please sign in to comment.