From 0f9fd9e86d9f3e2db922cb2793896f11238bf35b Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Tue, 16 Apr 2019 21:39:55 +0800 Subject: [PATCH 1/3] Tweak for local Mongo restore --- backup/restore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) From 7e3f4d55d1c95ed66430fe31147297e7de3f8835 Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Tue, 16 Apr 2019 21:41:22 +0800 Subject: [PATCH 2/3] Fix https://github.com/unee-t/frontend/issues/756 --- buildspec.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 + From e76decd0e606b87ee39ec99a65fe2934e0711789 Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Tue, 16 Apr 2019 21:41:40 +0800 Subject: [PATCH 3/3] Remove defunct gitlab CI file --- .gitlab-ci.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .gitlab-ci.yml 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 - - -