compose shenannigans

This commit is contained in:
Josh Burman 2019-02-27 14:57:29 -05:00
parent 875bee2348
commit 9d4a09b8bd
4 changed files with 24 additions and 33 deletions

21
.docker-compose/Dockerfile Executable file
View File

@ -0,0 +1,21 @@
FROM node:8
RUN mkdir /app
WORKDIR /app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . /app
ENV PORT 80
EXPOSE 80
CMD [ "npm", "start" ]

View File

@ -39,9 +39,9 @@ braid-logs() {
compose "logs braid"
}
braid-server() {
compose "run --rm braid-soap rails server --port 80 --binding 0.0.0.0"
}
# braid-server() {
# compose "run --rm braid rails server --port 80 --binding 0.0.0.0"
# }
restart-clean() {
compose "restart braid"

6
docker-compose.yml Normal file → Executable file
View File

@ -8,9 +8,3 @@ braid:
- 172.17.0.1
volumes:
- /apps/braid:/app
volumes_from:
- clean_bundle
clean_bundle:
image: busybox
volumes:
- /bundle

View File

@ -1,24 +0,0 @@
FROM ruby:2.3.4
MAINTAINER Jason Wall <jasonw@getyardstick.com>
RUN mkdir /app
WORKDIR /app
ENV RUBYOPT -rubygems
ENV BUNDLE_JOBS 2
ENV PATH /bundle/bin:$PATH
ENV LANG C.UTF-8
ENV BUNDLE_PATH /bundle
ENV BUNDLE_BIN /bundle/bin
ENV BUNDLE_APP_CONFIG /bundle
ENV LOCAL_DEV yes
ENV RAILS_ENV development
RUN sed -i 's/mesg/# mesg/g' /root/.profile
EXPOSE 80
ENV PORT 80
CMD bundle exec rails server --port 80 --binding 0.0.0.0 --pid /tmp/server.$(date +"%Y%m%d%H%M%S").pid