Skip to content

Commit

Permalink
Merge pull request #7 from connectedcars/update-base-images
Browse files Browse the repository at this point in the history
Update base images
  • Loading branch information
tlbdk authored Sep 8, 2022
2 parents 5ea7294 + 2e223f7 commit d37a194
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ RUN ln -s /opt/bin/auth-wrapper /opt/bin/git
ENV GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"

ENV PATH=/opt/bin:${PATH}
ENV WRAP_COMMAND=git
ENV SSH_KEY_PATH=${SSH_KEY_PATH}
ENTRYPOINT ["/opt/bin/auth-wrapper"]
ENTRYPOINT ["/opt/bin/git"]


#
Expand All @@ -65,12 +64,12 @@ COPY --from=builder /app/auth-wrapper /opt/bin/auth-wrapper
RUN ln -s /opt/bin/auth-wrapper /opt/bin/docker

ENV GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
RUN echo "Host *\n StrictHostKeyChecking no" > /etc/ssh/ssh_config.d/01-hostkey-disable.conf

ENV PATH=/opt/bin:${PATH}
ENV WRAP_COMMAND=docker
ENV SSH_KEY_PATH=${SSH_KEY_PATH}
ENV DOCKER_BUILDKIT=1
ENTRYPOINT ["/opt/bin/auth-wrapper"]
ENTRYPOINT ["/opt/bin/docker"]

#
# Authwrapped git with local keys
Expand All @@ -86,6 +85,5 @@ RUN chmod 600 /build.pem
ENV GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"

ENV PATH=/opt/bin:${PATH}
ENV WRAP_COMMAND=git
ENV SSH_KEY_PATH=/build.pem
ENTRYPOINT ["/opt/bin/auth-wrapper"]
ENTRYPOINT ["/opt/bin/git"]
9 changes: 8 additions & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
steps:
# Make sure we have the newest docker version
- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/cloud-builders/docker']
# Make sure we have the newest docker version
- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/cloud-builders/git']
# List docker version
- name: 'gcr.io/cloud-builders/docker'
args: ['version']
Expand Down Expand Up @@ -87,5 +93,6 @@ secrets:
images: [
'gcr.io/$PROJECT_ID/$REPO_NAME.$BRANCH_NAME',
'gcr.io/$PROJECT_ID/$REPO_NAME-git.$BRANCH_NAME',
'gcr.io/$PROJECT_ID/$REPO_NAME-git-local.$BRANCH_NAME'
'gcr.io/$PROJECT_ID/$REPO_NAME-git-local.$BRANCH_NAME',
'gcr.io/$PROJECT_ID/$REPO_NAME-docker.$BRANCH_NAME'
]

0 comments on commit d37a194

Please sign in to comment.