This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add support to Docker

  • Loading branch information...
adellibovi committed Apr 7, 2018
1 parent 09e9231 commit 1bf3708332c3daaecc411b1576236eb7a2a037e1
Showing with 55 additions and 3 deletions.
  1. +9 −0 .dockerignore
  2. +16 −0 Dockerfile
  3. +18 −3 README.md
  4. +4 −0 Rakefile
  5. +8 −0 docker-compose.yml
View
@@ -0,0 +1,9 @@
# Added by fastlane.ci team
.keys
!/spec/fixtures/files/.fastlane/ci/.keys
fastlane.log
fastlane.verbose.log
public/.dist/*
**/node_modules/*
package-lock.json
npm-debug.log
View
@@ -0,0 +1,16 @@
FROM ruby:2.5
ENV LANG C.UTF-8
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
WORKDIR /usr/src/app
COPY Gemfile Gemfile.lock ./
RUN bundle install
COPY . .
CMD ["prod"]
ENTRYPOINT ["bundle", "exec", "rake"]
View
@@ -59,8 +59,23 @@ Right now, `fastlane.ci` is in Alpha, we'd love for you to give it a try. Gettin
1. `cd ci`
1. `gem install bundler`
1. `bundle install`
1. `bundle exec rackup -p 8080 --env production`
1. Open [localhost:8080](http://localhost:8080/) in your web browser
1. `bundle exec rake prod`
1. Up at running at [localhost:8080](http://localhost:8080/)
## Using `fastlane.ci` with Docker
Currently, Docker deployment is for Linux projects only.
1. [Install Docker](https://docs.docker.com/install/)
1. Open the Terminal on the Mac or on a Linux you want to run as `fastlane.ci`
1. `git clone https://github.com/fastlane/ci`
1. `cd ci`
1. `docker-compose up`
1. Up at running at [localhost:8080](http://localhost:8080/)
### Configure `fastlane.ci`
1. Visit [localhost:8080](http://localhost:8080/)
1. Follow the onboarding instructions in your browser. In particular you'll have to create a separate GitHub account that will be used for all bot activities
## Development installation
@@ -72,7 +87,7 @@ Run the rake task: `rake devbootstrap`.
## Local development
```
bundle exec rackup -p 8080 --env development
bundle exec rake dev
```
Visit [localhost:8080](http://localhost:8080/) to open the login
View
@@ -2,6 +2,10 @@ task :dev do
sh "bundle exec rackup -p 8080 --env development"
end
task :prod do
sh "bundle exec rackup -p 8080 --env production"
end
task :devbootstrap do
sh "bundle install"
sh "npm install"
View
@@ -0,0 +1,8 @@
version: '3'
services:
web:
build: .
ports:
- "8080:8080"
volumes:
- "~/.fastlane:/root/.fastlane"

0 comments on commit 1bf3708

Please sign in to comment.