forked from vrnetlab/vrnetlab
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use alpine instead of debian to reduce the image size by 814 mb * fixed the download.py, added support for minor versions eg 23.05.3, unzip is now part of the download.py instead of the Makefile, download.py will skip the download if file is allready downloaded. * fixed launch.py, replaced argparse with click(support for environment variables - username, password and connection_mode) default connection mode is tc * updating the readme
- Loading branch information
Showing
5 changed files
with
143 additions
and
53 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
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,22 +1,26 @@ | ||
FROM debian:stretch | ||
MAINTAINER Kristian Larsson <kristian@spritelink.net> | ||
FROM alpine:3.18 | ||
MAINTAINER Andreas Cymbal takalele@konnex.me | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update -qy \ | ||
&& apt-get upgrade -qy \ | ||
&& apt-get install -y \ | ||
bridge-utils \ | ||
iproute2 \ | ||
python3-ipy \ | ||
RUN apk add --no-cache bash \ | ||
qemu-system-x86_64 \ | ||
qemu-img \ | ||
socat \ | ||
qemu-kvm \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
net-tools \ | ||
iproute2 \ | ||
bridge-utils \ | ||
python3 \ | ||
py3-click \ | ||
nano \ | ||
vim \ | ||
py3-pip && ln -sf python3 /usr/bin/python | ||
|
||
RUN pip3 install --no-cache --upgrade pip setuptools | ||
RUN pip install IPy | ||
|
||
ARG IMAGE | ||
COPY $IMAGE* / | ||
COPY *.py / | ||
|
||
EXPOSE 22 161/udp 80 830 5000 10000-10099 | ||
HEALTHCHECK CMD ["/healthcheck.py"] | ||
ENTRYPOINT ["/launch.py"] | ||
ENTRYPOINT ["/launch.py"] |
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