-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27c2253
commit 45bdec3
Showing
2 changed files
with
44 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
FROM portainer/dev-toolkit:2024.10 | ||
|
||
# This image uses /root as the home instead of /home/workspace | ||
ENV HOME=/root | ||
# Create a workspace folder | ||
RUN mkdir -pv /workspace && ln -s /workspace /root/workspace | ||
|
||
# Prepare a ssh folder placeholder to transfer keys | ||
RUN mkdir -p /root/.ssh | ||
|
||
# Prepare a git folder for storing git configuration | ||
RUN mkdir -p /root/.config/git | ||
# Create a workspace folder and link it to /root/workspace | ||
# I also create specific folders for SSH keys and Git configuration | ||
RUN mkdir -p /workspace /root/.ssh /root/.config/git && \ | ||
ln -s /workspace /root/workspace | ||
|
||
# Install httpie: http://httpie.io/ | ||
RUN curl -SsL https://packages.httpie.io/deb/KEY.gpg | apt-key add - \ | ||
|
@@ -18,14 +12,8 @@ RUN curl -SsL https://packages.httpie.io/deb/KEY.gpg | apt-key add - \ | |
|
||
# Install zsh | ||
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.1/zsh-in-docker.sh)" | ||
|
||
ENV SHELL=/bin/zsh | ||
|
||
# Install docker compose plugin | ||
RUN mkdir -p /root/.docker/cli-plugins/ \ | ||
&& curl -SL https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64 -o /root/.docker/cli-plugins/docker-compose \ | ||
&& chmod +x /root/.docker/cli-plugins/docker-compose | ||
|
||
# Install air | ||
RUN go install github.com/air-verse/air@latest | ||
|
||
|
@@ -36,4 +24,4 @@ RUN go install github.com/air-verse/air@latest | |
RUN printf '[url "ssh://[email protected]/"]\n\tinsteadOf = https://github.com/\n' > /root/.gitconfig | ||
|
||
# Update .zshrc | ||
RUN echo 'export PATH="$PATH:/root/.local/bin"' >> /root/.zshrc | ||
RUN echo 'export PATH="$PATH:/root/.local/bin"' >> /root/.zshrc |