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

Cannot access from terra station app. #51

Closed
scalalang2 opened this issue Dec 9, 2021 · 1 comment
Closed

Cannot access from terra station app. #51

scalalang2 opened this issue Dec 9, 2021 · 1 comment

Comments

@scalalang2
Copy link

scalalang2 commented Dec 9, 2021

  • OS : Mac OS X M1
  • Docker : Docker version 20.10.6, build 370c289
  • docker-compose: docker-compose version 1.29.1, build c34c88b2

I installed the LocalTerra according to its guide.
But it doesn't seem to work with terra station.

If I run the command below, we can see the error log from the FCD API as shown in the capture.

$ doker-compose up

image

TerraStation doesn't work as well.

@scalalang2
Copy link
Author

I found same issue on Google.
docker/for-mac#5831

It seems that Node v16.x currently doesn't seem to support Apple Silicon.
So I changed the node version to 14 in the Dockerfile of fcd and it works well:

# FROM node:lts as builder // before
FROM node:14-alpine3.14 as builder

WORKDIR /app

COPY . .
RUN npm ci

# FROM node:lts-alpine // before
FROM node:14-alpine3.14

RUN apk add --no-cache tzdata

WORKDIR /app

COPY --from=builder /app/entrypoint.sh /app/package.json /app/package-lock.json /app/tsconfig.json ./
COPY --from=builder /app/node_modules/ ./node_modules/
COPY --from=builder /app/apidoc-template/ ./apidoc-template/
COPY --from=builder /app/src/ ./src/

ENTRYPOINT [ "./entrypoint.sh" ]
CMD [ "--help" ]

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

2 participants