Initial Commit
This commit is contained in:
commit
1f7eb025be
12
.editorconfig
Normal file
12
.editorconfig
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = false
|
||||||
|
|
||||||
|
[Makefile]
|
||||||
|
indent_style = tab
|
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
5
.travis.yml
Normal file
5
.travis.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
script:
|
||||||
|
- make container-image/push
|
5
Dockerfile
Normal file
5
Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
ARG BASE_IMAGE
|
||||||
|
|
||||||
|
FROM ${BASE_IMAGE}
|
||||||
|
|
||||||
|
RUN apk add bind-tools curl iputils
|
43
Makefile
Normal file
43
Makefile
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# CONTAINER_RUNTIME
|
||||||
|
CONTAINER_RUNTIME:=$(shell which docker)
|
||||||
|
|
||||||
|
# BASE_IMAGE
|
||||||
|
# Definition of the base container image for flucky
|
||||||
|
BASE_IMAGE_REGISTRY:=docker.io
|
||||||
|
BASE_IMAGE_NAMESPACE:=library
|
||||||
|
BASE_IMAGE_NAME:=alpine
|
||||||
|
BASE_IMAGE_VERSION:=3.11.2
|
||||||
|
BASE_IMAGE_FULL=${BASE_IMAGE_REGISTRY}/${BASE_IMAGE_NAMESPACE}/${BASE_IMAGE_NAME}:${BASE_IMAGE_VERSION}
|
||||||
|
BASE_IMAGE_SHORT=${BASE_IMAGE_NAMESPACE}/${BASE_IMAGE_NAME}:${BASE_IMAGE_VERSION}
|
||||||
|
|
||||||
|
CONTAINER_IMAGE_REGISTRY:=docker.io
|
||||||
|
CONTAINER_IMAGE_REGISTRY_USER:=volkerraschek
|
||||||
|
CONTAINER_IMAGE_NAMESPACE:=volkerraschek
|
||||||
|
CONTAINER_IMAGE_NAME:=network-tools
|
||||||
|
CONTAINER_IMAGE_VERSION?=latest
|
||||||
|
CONTAINER_IMAGE_SHORT:=${CONTAINER_IMAGE_NAMESPACE}/${CONTAINER_IMAGE_NAME}:${CONTAINER_IMAGE_VERSION}
|
||||||
|
CONTAINER_IMAGE_FULL:=${CONTAINER_IMAGE_REGISTRY}/${CONTAINER_IMAGE_NAMESPACE}/${CONTAINER_IMAGE_NAME}:${CONTAINER_IMAGE_VERSION}
|
||||||
|
|
||||||
|
# DEBIAN BASED CONTAINER IMAGE
|
||||||
|
# ==============================================================================
|
||||||
|
PHONY+=container-image/build
|
||||||
|
container-image/build:
|
||||||
|
${CONTAINER_RUNTIME} build \
|
||||||
|
--build-arg BASE_IMAGE=${BASE_IMAGE_FULL} \
|
||||||
|
--no-cache \
|
||||||
|
--tag ${CONTAINER_IMAGE_FULL} \
|
||||||
|
--tag ${CONTAINER_IMAGE_SHORT} \
|
||||||
|
.
|
||||||
|
|
||||||
|
PHONY+=container-image/push
|
||||||
|
container-image/push: container-image/build
|
||||||
|
${CONTAINER_RUNTIME} login ${CONTAINER_IMAGE_REGISTRY} \
|
||||||
|
--username ${CONTAINER_IMAGE_REGISTRY_USER} \
|
||||||
|
--password ${CONTAINER_IMAGE_REGISTRY_PASSWORD}
|
||||||
|
${CONTAINER_RUNTIME} push ${CONTAINER_IMAGE_FULL}
|
||||||
|
|
||||||
|
# PHONY
|
||||||
|
# ==============================================================================
|
||||||
|
# Declare the contents of the PHONY variable as phony. We keep that information
|
||||||
|
# in a variable so we can use it in if_changed.
|
||||||
|
.PHONY: ${PHONY}
|
8
README.md
Normal file
8
README.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# network-tools
|
||||||
|
|
||||||
|
[![Build Status](https://travis-ci.com/volker-raschek/network-tools.svg?branch=master)](https://travis-ci.com/volker-raschek/network-tools)
|
||||||
|
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/network-tools)](https://hub.docker.com/r/volkerraschek/network-tools)
|
||||||
|
|
||||||
|
This repository contains only build files for a container image with
|
||||||
|
network-tools. This can be helpful to analyse in a container environment network
|
||||||
|
communication.
|
Loading…
Reference in New Issue
Block a user