-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started to update and write dockers files to make this run
- Loading branch information
1 parent
1a97e95
commit 51eb54c
Showing
6 changed files
with
95 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.7.7 | ||
2.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM ruby:3.2.2-buster | ||
|
||
EXPOSE 4567:4567 | ||
EXPOSE 35729:35729 | ||
|
||
WORKDIR /usr/src/gems | ||
|
||
COPY ./Gemfile /usr/src/gems | ||
COPY ./Gemfile.lock /usr/src/gems | ||
COPY ./.ruby-version /usr/src/gems | ||
|
||
RUN apt-get update && apt-get install -y nodejs | ||
|
||
RUN bundle config set force_ruby_platform true | ||
|
||
RUN bundle install | ||
|
||
WORKDIR /usr/src/docs | ||
|
||
|
||
CMD [ "bundle", "exec", "--gemfile=/usr/src/gems/Gemfile", "middleman", "server" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM nginx:mainline-alpine | ||
|
||
COPY build /usr/share/nginx/html | ||
COPY nginx.conf /etc/nginx/nginx.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
events {} | ||
http { | ||
server { | ||
listen 80; | ||
root /usr/share/nginx/html; | ||
location / { | ||
try_files $uri $uri/index.html =404; | ||
} | ||
error_page 404 /404/index.html; | ||
location = /404/index.html { | ||
root /usr/share/nginx/html; | ||
internal; | ||
} | ||
rewrite ^/.well-known/security.txt$ https://vdp.cabinetoffice.gov.uk/.well-known/security.txt permanent; | ||
rewrite ^/.well-known/thanks.txt$ https://vdp.cabinetoffice.gov.uk/.well-known/thanks.txt permanent; | ||
} | ||
|
||
include mime.types; | ||
default_type application/octet-stream; | ||
gzip_types text/plain text/xml text/css | ||
text/comma-separated-values | ||
text/javascript application/x-javascript | ||
application/atom+xml; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#! /bin/bash | ||
set -e | ||
|
||
docker build . --tag di-team-manual | ||
|
||
docker run --rm -p 4567:4567 -p 35729:35729 -v $(pwd):/usr/src/docs -it di-team-manual |