Skip to content

Commit e9085eb

Browse files
committed
move gcf setup to a script
1 parent b4e38da commit e9085eb

9 files changed

+14
-9
lines changed

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ COPY dotfiles/sshconfig .ssh/config
8686
RUN az extension add --name azure-devops
8787
RUN curl -LO https://github.com/sam-mfb/git-credential-forwarder/releases/download/v${GCF_VERSION}/git-credential-forwarder.zip
8888
RUN unzip git-credential-forwarder.zip
89-
RUN git config --global credential.helper '!f(){ node ~/gcf-client.js $*; }; f'
90-
RUN git config --global credential.https://dev.azure.com.useHttpPath true
89+
COPY setup-gcf-client.sh ./setup-gcf-client.sh
90+
RUN sudo chmod 755 ./setup-gcf-client.sh
91+
RUN ./setup-gcf-client.sh
9192
ENV GIT_CREDENTIAL_FORWARDER_SERVER host.docker.internal:${GCF_PORT}
9293
ENTRYPOINT bash
9394

run-coc.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/bin/bash
22

33
IMAGE_TARGET="coc-dev"
44
IMAGE_TAG="coc-dev"

run-dotnet-x64.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/sh
1+
#!/bin/sh
22

33
IMAGE_TARGET="dotnet-dev-x64"
44
IMAGE_TAG="align-services-dev-x64"

run-dotnet.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/sh
1+
#!/bin/sh
22

33
IMAGE_TARGET="dotnet-dev"
44
IMAGE_TAG="align-services-dev"

run-func.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/bin/bash
22

33
run_func () {
44
# flags to easily delete image and container

run-lisp.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/bin/bash
22

33
IMAGE_TARGET="lisp-dev"
44
IMAGE_TAG="lisp-dev"

run-pwsh.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/bin/bash
22

33
IMAGE_TARGET="pwsh-dev-align"
44
IMAGE_TAG="align-pwsh-dev"

run-ts.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/bin/bash
22

33
IMAGE_TARGET="ts-dev-align"
44
IMAGE_TAG="align-ts-dev"

setup-gcf-client.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
git config --global credential.helper '!f(){ node ~/gcf-client.js $*; }; f'
4+
git config --global credential.https://dev.azure.com.useHttpPath true

0 commit comments

Comments
 (0)