commit 77e9b4ff948638b7b32b978faf7568fa28cb7eda Author: Wolfgang Hottgenroth Date: Tue May 28 14:34:22 2019 +0200 initial diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4cf8c91 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +.*~ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..cb41526 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +image: docker:stable + +stages: + - build + +variables: + IMAGE_NAME: registry.gitlab.com/wolutator/networktools + +build: + stage: build + tags: + - hottis + - linux + - docker + script: + - VERSION=`cat VERSION` + - echo "Version is $VERSION" + - docker build --tag $IMAGE_NAME:latest --tag $IMAGE_NAME:$VERSION . + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker push $IMAGE_NAME:latest + - docker push $IMAGE_NAME:$VERSION + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..97f5c42 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM debian:latest + +LABEL Maintainer="Wolfgang Hottgenroth " +LABEL ImageName="registry.gitlab.com/wolutator/networktools + + +RUN \ + apt-get update && \ + apt-get install -y make && \ + apt-get install -y openssh-client && \ + apt-get install -y git && \ + apt-get install -y python && \ + apt-get install -y python-requests && \ + apt-get install -y gpg && \ + apt-get install -y apt-transport-https && \ + apt-get install -y wget && \ + apt-get install -y curl && \ + apt-get install -y nmap && \ + apt-get install -y snmp + + + diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..49d5957 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1