-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing new releases changes shriking the container image
- Loading branch information
Showing
2 changed files
with
27 additions
and
16 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,33 +1,31 @@ | ||
# Description: This is a utility container with all the tools needed for testing clusters and networks | ||
FROM debian:bookworm-slim | ||
|
||
# Metadata | ||
ARG VERSION=latest | ||
LABEL maintainer="David Binney <donkeysoft@gmail.com>" | ||
LABEL version=$VERSION | ||
LABEL description="This container is a utility for testing within cluster or networks and not needing to install tooling" | ||
LABEL description="This is a utility for testing within cluster or networks and not needing to install tooling" | ||
|
||
ENV TZ="Australia/Adelaide" | ||
|
||
WORKDIR /app | ||
|
||
COPY ./*.sh /app/ | ||
|
||
# Update and install basic tools | ||
RUN apt-get update && apt-get install -y \ | ||
dnsutils netcat-openbsd curl wget tar gnupg vim tmux zsh screenfetch && \ | ||
postgresql-client redis-tools && \ | ||
git golang nodejs npm && \ | ||
# Update and install all required tools in one RUN command to minimize layers | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
dnsutils netcat-openbsd curl wget tar gnupg vim tmux zsh \ | ||
postgresql-client redis-tools git golang nodejs npm && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# # Install MongoDB tools | ||
# RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor && \ | ||
# echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \ | ||
# apt-get update && apt-get install -y mongodb-org-tools && \ | ||
# Uncomment and modify the MongoDB tools installation if needed | ||
# RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-server-7.0.gpg && \ | ||
# echo "deb [signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \ | ||
# apt-get update && apt-get install -y --no-install-recommends mongodb-org-tools && \ | ||
# apt-get clean && \ | ||
# rm -rf /var/lib/apt/lists/* | ||
# rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN ./kickstart.sh | ||
|
||
ENTRYPOINT ["zsh", "/app/sleeper.sh"] | ||
ENTRYPOINT ["zsh", "/app/sleeper.sh"] |