Skip to content

Commit

Permalink
Path changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Curnow committed Aug 1, 2018
1 parent 4148f5a commit f9c003a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 35 deletions.
12 changes: 6 additions & 6 deletions Jenkinsfile
Expand Up @@ -24,10 +24,10 @@ pipeline {
steps {
ansiColor('xterm') {
// Codebase
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:latest yarn --registry=$NPM_REGISTRY install'
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:latest npm run-script build'
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:latest yarn --registry=$NPM_REGISTRY install'
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:latest npm run-script build'
sh 'rm -rf node_modules'
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:latest yarn --registry=$NPM_REGISTRY install --prod'
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:latest yarn --registry=$NPM_REGISTRY install --prod'
sh 'docker run --rm -v $(pwd):/data $DOCKER_CI_TOOLS node-prune'

// Docker Build
Expand Down Expand Up @@ -56,10 +56,10 @@ pipeline {
steps {
ansiColor('xterm') {
// Codebase
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:armhf yarn --registry=$NPM_REGISTRY install'
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:armhf npm run-script build'
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:armhf yarn --registry=$NPM_REGISTRY install'
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:armhf npm run-script build'
sh 'rm -rf node_modules'
sh 'docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME:armhf yarn --registry=$NPM_REGISTRY install --prod'
sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE_NAME:armhf yarn --registry=$NPM_REGISTRY install --prod'

// Docker Build
sh 'docker build --pull --no-cache --squash --compress -t $TEMP_IMAGE_NAME_ARM -f Dockerfile.armhf .'
Expand Down
20 changes: 0 additions & 20 deletions bin/gulp

This file was deleted.

7 changes: 3 additions & 4 deletions docker-compose.yml
@@ -1,7 +1,7 @@
version: "2"
services:
app:
image: jc21/node
image: jc21/nginx-proxy-manager-base:latest
ports:
- 8080:80
- 8081:81
Expand All @@ -11,7 +11,8 @@ services:
- FORCE_COLOR=1
volumes:
- ./data/letsencrypt:/etc/letsencrypt
- .:/srv/app
- .:/app
working_dir: /app
depends_on:
- db
links:
Expand All @@ -27,5 +28,3 @@ services:
volumes:
- ./config/my.cnf:/etc/mysql/conf.d/npm.cnf
- ./data/mysql:/var/lib/mysql
- ./data/initial-sql:/docker-entrypoint-initdb.d

10 changes: 7 additions & 3 deletions nodemon.json
@@ -1,5 +1,9 @@
{
"verbose": false,
"ignore": ["dist", "data", "src/frontend"],
"ext": "js json ejs"
"verbose": false,
"ignore": [
"dist",
"data",
"src/frontend"
],
"ext": "js json ejs"
}
3 changes: 2 additions & 1 deletion rootfs/etc/services.d/manager/run
Expand Up @@ -2,5 +2,6 @@

mkdir -p /data/letsencrypt-acme-challenge

cd /srv/app
cd /app
node --abort_on_uncaught_exception --max_old_space_size=250 /app/src/backend/index.js

2 changes: 1 addition & 1 deletion webpack.config.js
Expand Up @@ -107,7 +107,7 @@ module.exports = {
from: 'src/frontend/app-images',
to: 'images',
toType: 'dir',
context: '/srv/app'
context: '/app'
}]),
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1, // Must be greater than or equal to one
Expand Down

0 comments on commit f9c003a

Please sign in to comment.