Hello,
I'm trying to get my Vulk template running on AWS Beanstalk but my deployment always fails.
First of all I had to apply some modifications to the included Dockerfile. It looks like following now:
FROM bitnami/node:16 AS build
WORKDIR /app
ARG SITEMAP_HOST
COPY package.json ./
# COPY yarn.lock ./
# RUN CYPRESS_INSTALL_BINARY=0 yarn --frozen-lockfile
RUN CYPRESS_INSTALL_BINARY=0 yarn install
COPY . .
RUN SITEMAP_HOST=$SITEMAP_HOST \
yarn run build
FROM bitnami/node:16-prod AS prod
WORKDIR /app
COPY --from=build /app/dist dist
COPY --from=build /app/node_modules node_modules
COPY --from=build /app/package.json .
COPY --from=build /app/server.ts .
ENV PORT=8080
EXPOSE 8080
CMD ["yarn", "run", "serve"]
Also I found out that a t2.micro or even t2.small instance will run out of disk space on deployment, so t2.medium at least is suggested.
Now after all of these mods, I'm stuck at this error:
[ERROR] An error occurred during execution of command [app-deploy] - [Docker Specific Build Application]. Stop running the command. Error: failed to build docker image: Command /bin/sh -c docker build -t aws_beanstalk/staging-app /var/app/staging/ failed with error Command timed out after 300 seconds
2022/06/10 22:33:08.661230 [INFO] Executing cleanup logic
2022/06/10 22:33:08.661376 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed to build the Docker image. The deployment failed.","timestamp":1654900388661,"severity":"ERROR"},{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1654900388661,"severity":"ERROR"}]}]}
Maybe you can have a look and release a fixed version?
Thanks very much in advance
Hello,
I'm trying to get my Vulk template running on AWS Beanstalk but my deployment always fails.
First of all I had to apply some modifications to the included Dockerfile. It looks like following now:
Also I found out that a t2.micro or even t2.small instance will run out of disk space on deployment, so t2.medium at least is suggested.
Now after all of these mods, I'm stuck at this error:
Maybe you can have a look and release a fixed version?
Thanks very much in advance