UNCLASSIFIED - NO CUI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bigbang
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Currently supported Big Bang Version is 2.51
Show more breadcrumbs
Big Bang
bigbang
Commits
2f3b06d0
Commit
2f3b06d0
authored
4 years ago
by
runyontr
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup everywhere
parent
c3ece310
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+7
-8
7 additions, 8 deletions
.gitlab-ci.yml
tests/registries.yaml.template
+3
-2
3 additions, 2 deletions
tests/registries.yaml.template
with
10 additions
and
10 deletions
.gitlab-ci.yml
+
7
−
8
View file @
2f3b06d0
...
...
@@ -21,20 +21,18 @@ package tests:
-
yum -y install wget npm git gettext > /dev/null && wget https://download.docker.com/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo > /dev/null && yum -y install docker-ce-cli > /dev/null && yum -y clean all > /dev/null
-
wget -q "https://get.helm.sh/helm-v3.4.0-linux-amd64.tar.gz" && tar xzf helm-v3.4.0-linux-amd64.tar.gz -C /usr/local/bin/ --strip-components 1 && chmod +x /usr/local/bin/helm
-
curl -s https://toolkit.fluxcd.io/install.sh | bash
-
wget -q -O /usr/local/bin/argocd "https://github.com/argoproj/argo-cd/releases/download/v1.7.8/argocd-linux-amd64" && chmod +x /usr/local/bin/argocd
-
wget -q -O /usr/local/bin/mkcert "https://github.com/FiloSottile/mkcert/releases/download/v1.4.1/mkcert-v1.4.1-linux-amd64" && chmod +x /usr/local/bin/mkcert
-
wget -q -O /usr/local/bin/k3d "https://github.com/rancher/k3d/releases/download/v3.1.5/k3d-linux-amd64" && chmod +x /usr/local/bin/k3d
-
wget -q -O /usr/local/bin/kubectl "https://storage.googleapis.com/kubernetes-release/release/v1.19.3/bin/linux/amd64/kubectl" && chmod +x /usr/local/bin/kubectl
-
wget -q "https://github.com/open-policy-agent/conftest/releases/download/v0.21.0/conftest_0.21.0_Linux_x86_64.tar.gz" && tar xzf conftest_0.21.0_Linux_x86_64.tar.gz -C /usr/local/bin/ && chmod +x /usr/local/bin/conftest
# Starting dnsmasq for cluster dns resolution
-
docker run -d -p 53:53/udp -p 53:53 janeczku/go-dnsmasq:latest
-
echo "nameserver 127.0.0.1" >> /etc/resolv.conf
# Inject image pull secrets into k3d
-
export DOLLAR=$
-
env
-
envsubst < tests/registries.yaml.template > tests/registries.yaml
-
cat tests/registries.yaml
-
docker login registry1.dsop.io -p ${REGISTRY1_PASSWORD} -u
${REGISTRY1_USER}
-
docker login registry1.dsop.io -p ${REGISTRY1_PASSWORD} -u
'robot$bigbang'
-
docker pull registry1.dsop.io/ironbank/opensource/openpolicyagent/gatekeeper:v3.1.2
# Standup cluster
...
...
@@ -45,13 +43,13 @@ package tests:
# Install Flux
-
which flux
-
flux install --timeout 3m0s
-
while ! (
kubectl get n
s,pods,hr,gitrepositories -A); do sleep 3; done
-
kubectl get n
amespaces,pods,helmrelease,gitrepositories -A
# Install Big Bang
-
helm upgrade -i bigbang chart -n flux-system
# Wait for healthy
-
sleep
5
-
kubectl get n
s,pods,hr
,gitrepositories -A
-
kubectl wait --for=condition=Ready --timeout 30s helmrelease -n flux-system bigbang-certmanager
-
kubectl get n
amespaces,pods,helmrelease
,gitrepositories -A
-
kubectl wait --for=condition=Ready --timeout 30
0
s helmrelease -n flux-system bigbang-certmanager
-
kubectl wait --for=condition=Ready --timeout 300s helmrelease -n flux-system bigbang-gatekeeper
-
kubectl wait --for=condition=Ready --timeout 300s helmrelease -n flux-system bigbang-istio-operator
-
kubectl wait --for=condition=Ready --timeout 300s helmrelease -n flux-system bigbang-istio
...
...
@@ -59,6 +57,7 @@ package tests:
-
kubectl wait --for=condition=Ready --timeout 300s helmrelease -n flux-system bigbang-logging-operator
-
kubectl wait --for=condition=Ready --timeout 300s helmrelease -n flux-system bigbang-efk
-
kubectl wait --for=condition=Ready --timeout 300s helmrelease -n flux-system bigbang-twistlock
# Install cypress
# - npm install cypress
# Clean up previous cluster
...
...
@@ -77,7 +76,7 @@ package tests:
script
:
# Place kubernetes package test here
-
echo "Package tests go here"
-
kubectl get h
r
-A
-
kubectl get h
elmrelease
-A
after_script
:
# Delete Cluster
...
...
This diff is collapsed.
Click to expand it.
tests/registries.yaml.template
+
3
−
2
View file @
2f3b06d0
configs:
"registry1.dsop.io":
auth:
username: ${REGISTRY1_USER}
password: ${REGISTRY1_PASSWORD}
\ No newline at end of file
username: robot${DOLLAR}bigbang
password: ${REGISTRY1_PASSWORD}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment