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

Docker-compose to use the network host but could not resolve tailscale network domain #105

Open
hungran opened this issue Jan 18, 2024 · 0 comments

Comments

@hungran
Copy link

hungran commented Jan 18, 2024

Hi,
I've this job auth successfully with my tailscale network
on the github runner could interact, solved domain from my machine in tail net..

however, the docker-compose could not resolve the tailscale domain by magic DNS during the docker-compose build
is there any missing

jobs:
    image:
        runs-on: ubuntu-latest
        strategy:
            matrix:
                app: [xxx]
        steps:
            - name: Tailscale
              uses: tailscale/github-action@v2
              with:
                oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
                oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
                tags: "tag:k8s"
                version: 1.52.0
            - run: |
                tailscale status
                curl http://xxx.tailxxxx.ts.net:8888
            - run: |
                ... docker-compose build xxx

the dockerfile looks like:

ARG NODE_VERSION=12

###

FROM node:$NODE_VERSION as builder

ARG NEXUS_NPM_TOKEN
ARG NEXUS_CERT_FILE

RUN npm config set //xxxxx.tailxxx.ts.net:8080/repository/npm-playstudios/:_authToken $NEXUS_NPM_TOKEN  \
  && npm config set @psa:registry http://xxxxx.tailxxx.ts.net:8080/repository/npm-playstudios/ 
...
RUN ["npm", "ci"]

log:

 npm ERR! code E400
5.780 npm ERR! 400 Bad Request - GET http:
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

No branches or pull requests

1 participant