initial
This commit is contained in:
commit
77e9b4ff94
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*~
|
||||
.*~
|
22
.gitlab-ci.yml
Normal file
22
.gitlab-ci.yml
Normal 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
22
Dockerfile
Normal 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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user