This repository was archived by the owner on Dec 5, 2023. It is now read-only.
File tree 4 files changed +14
-10
lines changed
4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 1
- FROM mhart/alpine- node:6.3
1
+ FROM node:4-alpine
2
2
ENV NODE_ENV "production"
3
3
ENV PORT 8079
4
4
EXPOSE 8079
5
5
RUN addgroup mygroup && adduser -D -G mygroup myuser && mkdir -p /usr/src/app && chown -R myuser /usr/src/app
6
- RUN npm install -g yarn
7
-
8
6
9
7
# Prepare app directory
10
8
WORKDIR /usr/src/app
@@ -18,4 +16,4 @@ RUN yarn install
18
16
COPY . /usr/src/app
19
17
20
18
# Start the app
21
- CMD ["npm" , "start" ]
19
+ CMD ["/usr/local/bin/ npm" , "start" ]
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ IMAGE=front-end
2
2
3
3
.PHONY : test coverage
4
4
5
- up : compose test-image server
5
+ up : compose test-image deps server
6
6
7
7
down : kill-server kill-compose
8
8
@@ -31,7 +31,7 @@ server:
31
31
-e PORT=8080 \
32
32
-p 8080:8080 \
33
33
--network test_default \
34
- $(IMAGE ) npm start
34
+ $(IMAGE ) /usr/local/bin/ npm start
35
35
36
36
# Removes the development container & image
37
37
clean :
Original file line number Diff line number Diff line change 1
- FROM node:0.10.46
1
+ FROM node:4-alpine
2
2
3
- RUN apt-get install -y make
3
+ RUN apk update && apk add make
4
4
5
5
RUN npm install -g phantomjs-prebuilt
6
6
RUN npm install -g casperjs
7
7
8
8
RUN mkdir -p /usr/src/app
9
9
10
10
WORKDIR /usr/src/app
11
-
12
- ENTRYPOINT ["/bin/bash" ]
Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ services:
15
15
restart : always
16
16
environment :
17
17
- reschedule:on-node-failure
18
+ catalogue-db :
19
+ image : weaveworksdemos/catalogue-db
20
+ hostname : catalogue-db
21
+ restart : always
22
+ environment :
23
+ - MYSQL_ROOT_PASSWORD=""
24
+ - MYSQL_ALLOW_EMPTY_PASSWORD=true
25
+ - MYSQL_DATABASE=socksdb
18
26
carts :
19
27
image : weaveworksdemos/carts
20
28
hostname : carts
You can’t perform that action at this time.
0 commit comments