This commit is contained in:
Wolfgang Hottgenroth 2019-05-28 14:34:22 +02:00
commit 77e9b4ff94
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4
4 changed files with 47 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*~
.*~

22
.gitlab-ci.yml Normal file
View File

@ -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

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM debian:latest
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
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

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.1