Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Commit 37fc8ba

Browse files
authored
update golang installation script, remove docker from this container 🐋
1 parent b859860 commit 37fc8ba

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

Dockerfile

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ RUN $INS g++ gcc
3434

3535
### go ###
3636
USER coder
37-
RUN sudo apt install golang-go -y
38-
# install the new golang version
39-
# RUN go install golang.org/dl/go1.17.2@latest && go version
37+
RUN wget -O go.tar.gz https://golang.org/dl/go1.17.2.linux-amd64.tar.gz \
38+
&& tar -xf go.tar.gz \
39+
&& sudo chown -R root:root ./go \
40+
&& sudo mv -v go /usr/local \
41+
&& echo "export GOPATH=$HOME/go\nexport PATH=$PATH:/usr/local/go/bin:$GOPATH/bin" >> ~/.profile \
42+
&& source ~/.profile
4043

4144
### ruby ###
4245
USER coder
@@ -80,26 +83,26 @@ RUN sudo mkdir -p $CARGO_HOME \
8083

8184
RUN bash -lc "cargo install cargo-watch cargo-edit cargo-tree cargo-workspaces"
8285

83-
### docker ###
84-
USER root
85-
ENV TRIGGER_REBUILD=3
86-
# https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script
87-
RUN curl -fsSL https://get.docker.com -o get-docker.sh
88-
RUN sh get-docker.sh
86+
# ### docker ###
87+
# USER root
88+
# ENV TRIGGER_REBUILD=3
89+
# # https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script
90+
# RUN curl -fsSL https://get.docker.com -o get-docker.sh
91+
# RUN sh get-docker.sh
8992

90-
RUN curl -o /usr/bin/slirp4netns -fsSL https://github.com/rootless-containers/slirp4netns/releases/download/v1.1.12/slirp4netns-$(uname -m) \
91-
&& chmod +x /usr/bin/slirp4netns
93+
# RUN curl -o /usr/bin/slirp4netns -fsSL https://github.com/rootless-containers/slirp4netns/releases/download/v1.1.12/slirp4netns-$(uname -m) \
94+
# && chmod +x /usr/bin/slirp4netns
9295

93-
RUN curl -o /usr/local/bin/docker-compose -fsSL https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64 \
94-
&& chmod +x /usr/local/bin/docker-compose
96+
# RUN curl -o /usr/local/bin/docker-compose -fsSL https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64 \
97+
# && chmod +x /usr/local/bin/docker-compose
9598

96-
### docker:dive ###
97-
RUN curl -o /tmp/dive.deb -fsSL https://github.com/wagoodman/dive/releases/download/v0.10.0/dive_0.10.0_linux_amd64.deb \
98-
&& apt install /tmp/dive.deb \
99-
&& rm /tmp/dive.deb
99+
# ### docker:dive ###
100+
# RUN curl -o /tmp/dive.deb -fsSL https://github.com/wagoodman/dive/releases/download/v0.10.0/dive_0.10.0_linux_amd64.deb \
101+
# && apt install /tmp/dive.deb \
102+
# && rm /tmp/dive.deb
100103

101-
# enables docker starting with systemd
102-
RUN systemctl enable docker
104+
# # enables docker starting with systemd
105+
# RUN systemctl enable docker
103106

104107
### zsh ###
105108
USER coder
@@ -134,6 +137,7 @@ RUN brew install gh glab doctl duf \
134137
&& curl -fsSL https://code-server.dev/install.sh | sh
135138
RUN wget https://raw.githubusercontent.com/cdr/code-server/main/ci/release-image/entrypoint.sh && sudo chmod 755 entrypoint.sh \
136139
&& sudo mv entrypoint.sh /usr/bin/entrypoint.sh
140+
RUN alias code="code-server"
137141

138142
### install fixuid ###
139143
USER root

0 commit comments

Comments
 (0)