Skip to content

Commit

Permalink
[images/base] Add Python 3 into base image
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Oct 27, 2022
1 parent 827c0dd commit 956fe7f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion images/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ENV USERNAME=noel \
# Install needed packages
RUN DEBIAN_FRONTEND=noninteractive apt update && \
DEBIAN_FRONTEND=noninteractive apt upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt install -y sudo git curl neofetch git-lfs ca-certificates unzip zip bash vim nano
DEBIAN_FRONTEND=noninteractive apt install -y sudo git curl neofetch git-lfs ca-certificates unzip zip bash vim nano python3 python3-pip

# Setup the user environment
RUN groupadd -g ${USER_GID} ${USERNAME} && \
Expand Down Expand Up @@ -90,6 +90,7 @@ RUN echo "export PATH=\"\$PATH:/opt/coder/cli\"" >> /home/${USERNAME}/.bashrc
RUN echo "export PATH=\"\$PATH:/opt/hashicorp/terraform\"" >> /home/${USERNAME}/.bashrc
RUN echo "export PATH=\"\$PATH:/opt/github/cli/bin\"" >> /home/${USERNAME}/.bashrc
RUN echo "export PATH=\"\$PATH:/opt/helm\"" >> /home/${USERNAME}/.bashrc
RUN echo "export PATH=\"\$PATH:/home/${USERNAME}/.local/bin\"" >> /home/${USERNAME}/.bashrc

# Add common Helm repositores
RUN /opt/helm/helm repo add bitnami https://charts.bitnami.com/bitnami
3 changes: 2 additions & 1 deletion templates/charted-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ This template is made for the use of [**charted-server**](https://github.com/cha

## How to use this template?
```sh
# You will need to be signed into Coder to do this
# You will need to be signed into Coder to do this to import this template
$ cd templates/charted-server
$ coder templates create "charted-server" --yes
```
5 changes: 5 additions & 0 deletions templates/charted-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ resource "coder_agent" "main" {
startup_script = <<-EOF
#!/bin/bash
# This script installs JetBrains Projector, I'm fine with the latency, but
# you might not.
PROJECTOR_LOGS=/home/noel/.logs/projector.log
PROJECTOR_BINARY=
# Setup Git
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
Expand Down

0 comments on commit 956fe7f

Please sign in to comment.