From 7246fc4338b324e19cfed379b7e1b852f5ed12b0 Mon Sep 17 00:00:00 2001 From: Dima Mishin <dimm@protonmail.ch> Date: Fri, 2 Oct 2020 23:15:31 -0700 Subject: [PATCH] Revert "Don't need our own image anymore" This reverts commit 8074b5fab88c6553fa7eddc01f82e47b9e39a8bd --- .gitlab-ci.yml | 10 ++++++++++ Dockerfile | 4 ++++ values.yaml | 6 +++--- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .gitlab-ci.yml create mode 100644 Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..03eefec --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +image: gcr.io/kaniko-project/executor:debug + +stages: + - build-and-push + +build-and-push-job: + stage: build-and-push + script: + - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:${CI_COMMIT_SHA:0:8} --destination $CI_REGISTRY_IMAGE:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..74da3e6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM netboxcommunity/netbox:v2.8.8 +ENV NAPALM_USERNAME netbox-napalm + +RUN apk add git && pip3 install napalm diff --git a/values.yaml b/values.yaml index 4a97bb4..bb760db 100644 --- a/values.yaml +++ b/values.yaml @@ -1,6 +1,6 @@ image: - repository: netboxcommunity/netbox - tag: v2.8.8 + repository: gitlab-registry.nautilus.optiputer.net/prp/netbox + tag: latest resources: limits: @@ -20,4 +20,4 @@ nginx: memory: 128Mi persistence: - storageClass: "rook-block" + storageClass: "rook-block" \ No newline at end of file -- GitLab