compose shenannigans
This commit is contained in:
parent
875bee2348
commit
9d4a09b8bd
21
.docker-compose/Dockerfile
Executable file
21
.docker-compose/Dockerfile
Executable 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" ]
|
@ -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
6
docker-compose.yml
Normal file → Executable file
@ -8,9 +8,3 @@ braid:
|
||||
- 172.17.0.1
|
||||
volumes:
|
||||
- /apps/braid:/app
|
||||
volumes_from:
|
||||
- clean_bundle
|
||||
clean_bundle:
|
||||
image: busybox
|
||||
volumes:
|
||||
- /bundle
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user