-
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.
- Loading branch information
1 parent
f87173d
commit ae740d8
Showing
6 changed files
with
95 additions
and
6 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,24 @@ | ||
# temp | ||
.sass-cache/ | ||
/log/ | ||
/tmp/ | ||
*.bak | ||
*~ | ||
|
||
# uploaded files | ||
#/public/files | ||
|
||
# dumps | ||
/db/dumps/**/* | ||
|
||
# seo files | ||
#/views/site/sitemap.html | ||
#/public/robots.txt | ||
|
||
# node modules | ||
# /node_modules/ | ||
|
||
# compiled assets | ||
/public/styles/main.css | ||
/public/styles/main.css.map | ||
/public/scripts/compiled/ |
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,37 @@ | ||
FROM debian:latest | ||
|
||
MAINTAINER Alexander Popov <[email protected]> | ||
|
||
ARG port | ||
|
||
RUN apt-get update -qq && apt-get install -y \ | ||
## For `rbenv` and `nodenv` | ||
curl git gcc make \ | ||
## For Ruby | ||
autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev \ | ||
## For Ruby gems | ||
libpq-dev | ||
|
||
RUN adduser --gecos '' --disabled-password stream_timer | ||
USER stream_timer | ||
ENV HOME /home/stream_timer | ||
|
||
## Install `rbenv` and `ruby-build` | ||
ENV PATH $HOME/.rbenv/shims:$HOME/.rbenv/bin:$HOME/.rbenv/plugins/ruby-build/bin:$PATH | ||
RUN curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash | ||
|
||
## Install `nodenv` and `node-build` | ||
ENV PATH $HOME/.nodenv/shims:$HOME/.nodenv/bin:$HOME/.nodenv/plugins/node-build/bin:$PATH | ||
RUN curl -fsSL https://raw.githubusercontent.com/nodenv/nodenv-installer/master/bin/nodenv-installer | bash | ||
|
||
ARG project_path=/home/stream_timer/stream_timer | ||
|
||
RUN mkdir $project_path | ||
WORKDIR $project_path | ||
COPY --chown=stream_timer:stream_timer . $project_path | ||
|
||
RUN exe/setup.sh | ||
|
||
EXPOSE ${port} | ||
|
||
CMD ["bundle", "exec", "toys", "server", "start"] |
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,22 @@ | ||
version: '3' | ||
services: | ||
db: | ||
image: postgres | ||
volumes: | ||
- ./db/docker:/var/lib/postgresql/data | ||
environment: | ||
POSTGRES_DB: 'stream_timer' | ||
POSTGRES_USER: 'stream_timer' | ||
POSTGRES_PASSWORD: 'K1MWcvPouuaaDlssN1vk' | ||
web: | ||
image: stream_timer | ||
build: | ||
context: . | ||
args: | ||
port: 3000 | ||
volumes: | ||
- .:/home/stream_timer/stream_timer | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- db |
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