Commit b7986de5 authored by John Noel's avatar John Noel

Initial commit

parents
.git
.dockerignore
.byebug_history
log/*
tmp/*
\ No newline at end of file
# Prefix for docker images, containers, volumes and networks
COMPOSE_PROJECT_NAME=ruby
\ No newline at end of file
FROM ruby:2.5-alpine
# Uncomment if using within Ateneo network
# ENV http_proxy http://proxy.admu.edu.ph:3128
# ENV https_proxy http://proxy.admu.edu.ph:3128
RUN apk update && apk add build-base git
RUN apk add --update bash && rm -rf /var/cache/apk/*
RUN mkdir /app
WORKDIR /app
COPY . /app
\ No newline at end of file
# Getting Started with Ruby, Docker
## Setup
* Clone this repository
```bash
# via SSH (Make sure that you have already finished the setup for the SSH keys)
git clone ssh://git@gitlab.discs.ateneo.edu:15316/mis-21-2018-intersession/1-getting-started-with-ruby.git 1-ruby
# or
# via HTTPS
git clone https://gitlab.discs.ateneo.edu/mis-21-2018-intersession/1-getting-started-with-ruby.git 1-ruby
```
* Go inside the cloned repository.
```bash
cd 1-ruby
```
* Make sure to disconnect this repository to the remote repository.
```bash
rm -rf .git
```
* Build Docker image.
```bash
docker-compose build
```
**Note**: During the first run, this will take a while.
* Open another Terminal (Mac/Unix) / Powershell (Windows).
* Go inside the project directory.
```bash
cd <directory where you cloned the repository>
```
* Run ``bash`` using the built Docker image
```bash
docker-compose run web bash
```
\ No newline at end of file
version: '3'
services:
web:
build: .
volumes:
- .:/app
env_file:
- .env
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment