diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index bde466c3..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,21 +0,0 @@ -image: blurri/meteor-node - -variables: - METEOR_ALLOW_SUPERUSER: "true" - -services: - - mongo - -cache: - paths: - - "node_modules" - - "~/.npm" - - "~/.meteor" - - "~/meteor" - -test: - script: - - meteor npm it - - - diff --git a/backup/restore.sh b/backup/restore.sh index fbd7faaa..ce4d5f77 100755 --- a/backup/restore.sh +++ b/backup/restore.sh @@ -48,7 +48,8 @@ fi if test $AWS_PROFILE == uneet-localhost then - echo mongorestore -h 127.0.0.1 --drop --port 27017 $dir + # assuming you're running meteor locally, port is 3001 oddly + mongorestore -h 127.0.0.1 --drop --port 3001 $dir else MONGO_PASSWORD=$(aws --profile $AWS_PROFILE ssm get-parameters --names MONGO_PASSWORD --with-decryption --query Parameters[0].Value --output text) MONGO_CONNECT=$(aws --profile $AWS_PROFILE ssm get-parameters --names MONGO_CONNECT --query Parameters[0].Value --output text) diff --git a/buildspec.yml b/buildspec.yml index 065f9c43..617a21e1 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -4,6 +4,7 @@ env: variables: APP: "frontend" ACCOUNT: "812644853088" + METEOR_ALLOW_SUPERUSER: 1 phases: pre_build: @@ -15,7 +16,21 @@ phases: - curl https://install.meteor.com/ | sh build: commands: + - apt-get update + + # Install apt-transport-https + - apt-get install -y apt-transport-https + + # Use apt to install the Chrome dependencies + - apt-get install -y libxcursor1 + - apt-get install -y libgtk-3-dev + - apt-get install -y libxss1 + - apt-get install -y libasound2 + - apt-get install -y libnspr4 + - apt-get install -y libnss3 + - apt-get install -y libx11-xcb1 - meteor npm install + - npm t - 'sed -i "s,<\!-- COMMIT: -->,<\!-- COMMIT: $CODEBUILD_SOURCE_VERSION $CODEBUILD_RESOLVED_SOURCE_VERSION -->,g" client/main.html' - meteor build --directory /tmp/export-meteor/build --allow-superuser - printf "FROM ulexus/meteor:build\nCOPY build /home/meteor/www\nRUN chown -R meteor:meteor /home/meteor/\n" >/tmp/export-meteor/Dockerfile @@ -31,3 +46,4 @@ phases: artifacts: files: imagedefinitions.json +