-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #403
- Loading branch information
Showing
6 changed files
with
79 additions
and
10,252 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Start with a Ruby base image | ||
FROM ruby:2.6 | ||
|
||
# Install Node.js | ||
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - | ||
RUN apt-get install -y nodejs | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Copy project files | ||
COPY Gemfile Gemfile.lock package.json package-lock.json ./ | ||
|
||
# Update rubygems | ||
RUN gem update --system 3.2.3 | ||
|
||
# Install bundler that works with the current version of Ruby | ||
RUN gem install bundler:2.4.22 --no-document |
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
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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# Install gems | ||
bundle check || bundle install --jobs 4 --retry 3 | ||
|
||
# Install node modules | ||
npm install --prefer-offline --no-audit | ||
|
||
# Symlink docsites from dry-rb repos | ||
bundle exec rake projects:symlink | ||
|
||
# Start middleman server | ||
bundle exec middleman server --verbose |
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,14 @@ | ||
version: "3" | ||
|
||
services: | ||
development: | ||
build: . | ||
entrypoint: bin/docker | ||
volumes: | ||
- .:/app | ||
- bundle:/usr/local/bundle | ||
ports: | ||
- "4567:4567" | ||
|
||
volumes: | ||
bundle: |
Oops, something went wrong.