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

Move from Docker Hub images to ECR public images. #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients-api/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ WORKDIR /app
COPY --from=build-env /app/publish .
EXPOSE 5003
ENV ASPNETCORE_URLS "http://*:5003"
CMD dotnet ACG.EKS.Bookstore.Clients-API.dll
CMD dotnet ACG.EKS.Bookstore.Clients-API.dll
14 changes: 7 additions & 7 deletions front-end/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:carbon-alpine
WORKDIR /opt/forms
COPY package*.json ./
RUN npm install
COPY . ./
FROM public.ecr.aws/bitnami/node:8 as builder
WORKDIR /app
COPY package*.json /app/
RUN npm --unsafe-perm install
COPY . /app
RUN npm run build

FROM nginx:1.15-alpine
COPY --from=0 /opt/forms/dist /usr/share/nginx/html
FROM public.ecr.aws/nginx/nginx:1.18-alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
10 changes: 5 additions & 5 deletions inventory-api/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:10
WORKDIR /usr/src/app
COPY package*.json ./
FROM public.ecr.aws/bitnami/node:10-prod
WORKDIR /app
COPY package*.json /app/

RUN npm install
COPY . .
COPY . /app
EXPOSE 5001
CMD node app.js
CMD node app.js
19 changes: 9 additions & 10 deletions renting-api/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM ruby:2.6.3

# RUN bundle config --delete frozen
# RUN bundle config --global frozen 1

WORKDIR /usr/src/app

COPY Gemfile Gemfile.lock ./
FROM public.ecr.aws/bitnami/ruby:2.6.6 as builder
COPY . /app
WORKDIR /app
RUN bundle config set deployment 'true'
RUN bundle install

COPY . .
CMD ["bundle", "exec", "rails", "server", "-p", "5004", "-b", "0.0.0.0"]
FROM public.ecr.aws/bitnami/ruby:2.6.6-prod
COPY --from=builder /app /app
WORKDIR /app

CMD ["bundle", "exec", "rails", "server", "-p", "5004", "-b", "0.0.0.0"]
2 changes: 1 addition & 1 deletion renting-api/api/Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.6.3'
ruby '2.6.6'

# AWS SDK
gem 'aws-sdk', '~> 3'
Expand Down
4 changes: 2 additions & 2 deletions renting-api/api/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ DEPENDENCIES
tzinfo-data

RUBY VERSION
ruby 2.6.3p62
ruby 2.6.6p146

BUNDLED WITH
1.17.2
2.1.4
6 changes: 3 additions & 3 deletions resource-api/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM python:3
FROM public.ecr.aws/bitnami/python:3.9
ADD requirements.txt requirements.txt
RUN pip install -r requirements.txt
ADD . /
CMD [ "gunicorn", "--worker-tmp-dir", "/dev/shm", "--bind", "0.0.0.0:5000", "wsgi:app" ]
ADD . /app
CMD [ "gunicorn", "--worker-tmp-dir", "/dev/shm", "--bind", "0.0.0.0:5000", "wsgi:app" ]