Skip to content

Codebuild fix for dev builds with tests #757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .gitlab-ci.yml

This file was deleted.

3 changes: 2 additions & 1 deletion backup/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 16 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ env:
variables:
APP: "frontend"
ACCOUNT: "812644853088"
METEOR_ALLOW_SUPERUSER: 1

phases:
pre_build:
Expand All @@ -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
Expand All @@ -31,3 +46,4 @@ phases:

artifacts:
files: imagedefinitions.json