Skip to content

Commit

Permalink
fix devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codes committed Oct 24, 2024
1 parent 7accf30 commit 9e9139c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ RUN apt-get install -y \
python-apt-common \
python3-apt \
python3-pip \
python3.11 \
snmp \
sshfs \
sshpass \
Expand Down Expand Up @@ -80,7 +81,9 @@ RUN ansible-galaxy collection install ansible.windows
RUN ansible-galaxy collection install community.windows
RUN ansible-galaxy collection install kubernetes.core

# Jsonnet
# go/ jsonnet
RUN curl -s https://dl.google.com/go/go1.18.1.linux-amd64.tar.gz | tar -xz -C /usr/local
RUN ln -s /usr/local/go/bin/go /usr/local/bin
RUN go install github.com/google/go-jsonnet/cmd/jsonnet@latest
RUN go install -a github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest
RUN ln -s $(go env GOPATH)/bin/jsonnet /usr/local/bin
Expand All @@ -90,3 +93,17 @@ RUN mkdir -p ~/.kube
COPY bash_profile_setup.sh /root/.bash_profile_setup.sh
RUN echo "source ~/.bash_profile_setup.sh" >>/root/.bashrc
RUN echo "source ~/.bash_profile_setup.sh" >>/root/.bash_profile

# yq
RUN curl https://github.com/mikefarah/yq/releases/download/v4.6.3/yq_linux_amd64 -o /usr/local/bin/yq
RUN chmod +x /usr/local/bin/yq

# helm
RUN curl -fsSL -o helm.tar.gz https://get.helm.sh/helm-v3.6.1-linux-amd64.tar.gz
RUN tar -zxvf helm.tar.gz
RUN mv linux-amd64/helm /usr/local/bin/helm
RUN chmod +x /usr/local/bin/helm

# updated git
RUN git clone https://github.com/git/git.git
RUN cd git && git checkout v2.38.1 && make prefix=/usr/local all && make prefix=/usr/local install
2 changes: 2 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -e

git config --global --add safe.directory /workspaces/home-automation

corepack enable
corepack use [email protected]

Expand Down

0 comments on commit 9e9139c

Please sign in to comment.