Skip to content

Commit f9c003a

Browse files
author
Jamie Curnow
committed
Path changes
1 parent 4148f5a commit f9c003a

File tree

6 files changed

+19
-35
lines changed

6 files changed

+19
-35
lines changed

Jenkinsfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ pipeline {
2424
steps {
2525
ansiColor('xterm') {
2626
// Codebase
27-
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:latest yarn --registry=$NPM_REGISTRY install'
28-
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:latest npm run-script build'
27+
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:latest yarn --registry=$NPM_REGISTRY install'
28+
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:latest npm run-script build'
2929
sh 'rm -rf node_modules'
30-
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:latest yarn --registry=$NPM_REGISTRY install --prod'
30+
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:latest yarn --registry=$NPM_REGISTRY install --prod'
3131
sh 'docker run --rm -v $(pwd):/data $DOCKER_CI_TOOLS node-prune'
3232

3333
// Docker Build
@@ -56,10 +56,10 @@ pipeline {
5656
steps {
5757
ansiColor('xterm') {
5858
// Codebase
59-
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:armhf yarn --registry=$NPM_REGISTRY install'
60-
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:armhf npm run-script build'
59+
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:armhf yarn --registry=$NPM_REGISTRY install'
60+
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:armhf npm run-script build'
6161
sh 'rm -rf node_modules'
62-
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:armhf yarn --registry=$NPM_REGISTRY install --prod'
62+
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:armhf yarn --registry=$NPM_REGISTRY install --prod'
6363

6464
// Docker Build
6565
sh 'docker build --pull --no-cache --squash --compress -t $TEMP_IMAGE_NAME_ARM -f Dockerfile.armhf .'

bin/gulp

Lines changed: 0 additions & 20 deletions
This file was deleted.

docker-compose.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "2"
22
services:
33
app:
4-
image: jc21/node
4+
image: jc21/nginx-proxy-manager-base:latest
55
ports:
66
- 8080:80
77
- 8081:81
@@ -11,7 +11,8 @@ services:
1111
- FORCE_COLOR=1
1212
volumes:
1313
- ./data/letsencrypt:/etc/letsencrypt
14-
- .:/srv/app
14+
- .:/app
15+
working_dir: /app
1516
depends_on:
1617
- db
1718
links:
@@ -27,5 +28,3 @@ services:
2728
volumes:
2829
- ./config/my.cnf:/etc/mysql/conf.d/npm.cnf
2930
- ./data/mysql:/var/lib/mysql
30-
- ./data/initial-sql:/docker-entrypoint-initdb.d
31-

nodemon.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2-
"verbose": false,
3-
"ignore": ["dist", "data", "src/frontend"],
4-
"ext": "js json ejs"
2+
"verbose": false,
3+
"ignore": [
4+
"dist",
5+
"data",
6+
"src/frontend"
7+
],
8+
"ext": "js json ejs"
59
}

rootfs/etc/services.d/manager/run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
mkdir -p /data/letsencrypt-acme-challenge
44

5-
cd /srv/app
5+
cd /app
66
node --abort_on_uncaught_exception --max_old_space_size=250 /app/src/backend/index.js
7+

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module.exports = {
107107
from: 'src/frontend/app-images',
108108
to: 'images',
109109
toType: 'dir',
110-
context: '/srv/app'
110+
context: '/app'
111111
}]),
112112
new webpack.optimize.LimitChunkCountPlugin({
113113
maxChunks: 1, // Must be greater than or equal to one

0 commit comments

Comments
 (0)