-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #917 from uktrade/develop
Release
- Loading branch information
Showing
19 changed files
with
53 additions
and
17 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
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 |
---|---|---|
|
@@ -91,4 +91,7 @@ output.png | |
.rspec | ||
|
||
# Test file | ||
test_clean_file | ||
test_clean_file | ||
|
||
#Docker config file | ||
Dockerfile.dev |
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,28 @@ | ||
### 1. Pull offical Python | ||
FROM ruby:3.2.2 | ||
|
||
### 2. Add Environment variables | ||
ENV DOCKERIZE_VERSION v0.6.1 | ||
ENV BUNDLER_VERSION=2.1.4 | ||
|
||
### 3. Create working directory | ||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
### 4. Install dependancies | ||
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client wget | ||
|
||
### 5. Add dockerize to allow waiting for the DB to load. | ||
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | ||
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | ||
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz | ||
|
||
### 6. Copy project to container | ||
COPY . /app/ | ||
|
||
### 7. Install dependancies | ||
RUN bundle install | ||
|
||
### 8. Configure the main process to run when running the image | ||
CMD ["rails", "server", "-b", "0.0.0.0"] | ||
|
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.