Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
schedules
Commits
e3349b4a
Commit
e3349b4a
authored
Sep 06, 2018
by
Zac Wood
Browse files
Added Dockerfiles for use during development
parent
cc4f4bdc
Pipeline
#2851
passed with stage
in 2 minutes and 22 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
init.sh
View file @
e3349b4a
#! /bin/bash
# Build the API image
cd
schedules_api/
docker build
.
-t
'schedules_api'
docker build
.
-t
'schedules_api'
-f
Dockerfile.dev
# Build the Web image
cd
../schedules_web
docker build
.
-t
'schedules_web'
docker build
.
-t
'schedules_web'
-f
Dockerfile.dev
# Start and link the images together
cd
..
docker-compose up
schedules_api/Dockerfile.dev
0 → 100644
View file @
e3349b4a
FROM ruby:2.5
# Copy the project files to /api
COPY . /api
# Tell Docker to run all commands in /api
WORKDIR /api
# Install project dependencies
RUN bundle install
# Perform database migrations
RUN rails db:migrate
# Load the database from Patriot Web
RUN rails db:seed
schedules_web/Dockerfile.dev
0 → 100644
View file @
e3349b4a
FROM node:9
# Copy the project files to /web
COPY . /web
# Tell Docker to run all commands in /api
WORKDIR /web
# Install project dependencies
RUN yarn
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment