Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI #14

Merged
merged 23 commits into from
Aug 3, 2017
Merged

CI #14

merged 23 commits into from
Aug 3, 2017

Conversation

auhlig
Copy link
Member

@auhlig auhlig commented Jul 26, 2017

updated makefile, added dockerfile and pipeline.

TODO:

  • kubeconfig and certs need to go in the container
  • secrets for helm chart

- -c
- |
set -exo pipefail
helm upgrade kubernikus kubernikus.git/charts/kube-master/ --values secrets.git/$REGION/values/kubernikus.yaml
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where are the secrets stored/ where should the be stored?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question. cc/secrets for now I would say. The plan is to deploy kubernikus in every region is having it in cc/secrets is not the worst idea I think

Copy link
Member

@databus23 databus23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this on. I have quite a few remarks we can have a call about some details if needed.

Dockerfile Outdated
MAINTAINER "Fabian Ruff <[email protected]>"

RUN apk add --no-cache file
ADD bin/linux/docker.tar /bin/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the dance with tar?
Can't we just do

RUN wget -O /usr/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 && chmod +x /usr/bin/dumb-init
ADD bin/linux/ /bin/

ci/pipeline.yaml Outdated
image_resource:
type: docker-image
source:
repository: hub.global.cloud.sap/monsoon/monsoon-pipeline
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not use this image anymore. Its outdated and unmainted AFAIK.

ci/pipeline.yaml Outdated
docker login -e="." -u="$DOCKER_SAPCC_USER" -p="$DOCKER_SAPCC_PW" hub.docker.com
# patch the upstream Dockerfile to add SAP CAs
cat >>Dockerfile <<-EOF
RUN apk add --update wget ca-certificates && \
Copy link
Member

@databus23 databus23 Aug 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why we need that. All Openstack endpoints have a proper Symantec cert by now, even staging AFAIK.

Also I don't like meddling with the Dockerfile in this way. If we need this we should have this in the Dockerfile.

I suggest leaving it out for now and reconsider when we really need it.

ci/pipeline.yaml Outdated
cat >>Dockerfile <<-EOF
RUN apk add --update wget ca-certificates && \
wget -O /usr/local/share/ca-certificates/SAP_Global_Root_CA.crt http://aia.pki.co.sap.com/aia/SAP%20Global%20Root%20CA.crt && \
wget -O /usr/local/share/ca-certificates/SAP_Global_Sub_CA_02.crt http://aia.pki.co.sap.com/aia/SAP%20Global%20Sub%20CA%2002.crt && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Sub certs are definitely not needed. They just clutter up the script.

ci/pipeline.yaml Outdated
EOF
yum -y install gcc glibc-static
# cannot just `yum install go` because go-1.6 from the repo is too old
curl https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz | ( cd /usr/local && tar xzf - )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would create a build environment in this way.

My suggestion would be to use a standard 1.8.3-alpine3.6 instead of the monsoon pipeline image.

Or we could also try out the new multistage docker build feature: https://docs.docker.com/engine/userguide/eng-image/multistage-build/

This would remove the entire task from concourse and we would build the binary and the image in the put step. its never been done before but it might be worth trying.

- -c
- |
set -exo pipefail
helm upgrade kubernikus kubernikus.git/charts/kube-master/ --values secrets.git/$REGION/values/kubernikus.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question. cc/secrets for now I would say. The plan is to deploy kubernikus in every region is having it in cc/secrets is not the worst idea I think

log_level: 1

groundctl:
auth_url: "http://identityv3.openstack:5000/v3"
Copy link
Member

@databus23 databus23 Aug 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not put those in as actual default values.
I think its better leave them in commented and reference them in the chart with:
{{ required "Missing value auth_url" .Values.auth_url }}

That what you get a nice error when trying to install this chart with missing values.

@databus23 databus23 changed the title **WIP** CI CI Aug 3, 2017
@databus23 databus23 merged commit b99b6d2 into master Aug 3, 2017
@databus23 databus23 deleted the ci branch August 3, 2017 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants