Skip to content
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

feat: AWS linux 2 migration of webapp environment #14976

Merged
merged 40 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
71cf09f
feat: aws migration QA env(SQSERVICES-1965)
arjita-mitra Mar 31, 2023
501288e
feat: update nginx file
arjita-mitra Mar 31, 2023
926ac09
fix: update env name to resolve application name issue
arjita-mitra Mar 31, 2023
1f2d8a0
fix: add Procfile
arjita-mitra Apr 3, 2023
0ad9a7c
refactor: delete old Profile
arjita-mitra Apr 3, 2023
85d318c
feat: copy assets
arjita-mitra Apr 3, 2023
0e9576e
fix: delete fs.copysysnc
arjita-mitra Apr 3, 2023
ba2fe64
fix: copy Procfile script
arjita-mitra Apr 3, 2023
f1a592f
fix: add Procfile inside zip.js
arjita-mitra Apr 3, 2023
cb1dba0
feat: update qa env name
arjita-mitra Apr 3, 2023
8bd566c
Update .github/workflows/test_build_deploy.yml
arjita-mitra Apr 4, 2023
0320f6e
Update .github/workflows/test_build_deploy.yml
arjita-mitra Apr 4, 2023
38800f8
Update .github/workflows/test_build_deploy.yml
arjita-mitra Apr 4, 2023
e5e372f
Update .github/workflows/test_build_deploy.yml
arjita-mitra Apr 4, 2023
4d001d5
Update .github/workflows/test_build_deploy.yml
arjita-mitra Apr 4, 2023
0f61dab
fix: make new Elastic Beanstalk configuration backward compatible
arjita-mitra Apr 4, 2023
967c644
Merge branch 'tmp_qa_migration' of https://github.com/wireapp/wire-we…
arjita-mitra Apr 4, 2023
a1ca63e
fix: remove comma
arjita-mitra Apr 4, 2023
46ad235
fix: create different namespace for new and old configuration
arjita-mitra Apr 4, 2023
7b07fd4
feat: backward compaitable configuration
arjita-mitra Apr 4, 2023
be82d4f
feat: rename config file
arjita-mitra Apr 4, 2023
a2fb79e
fix: delete old file
arjita-mitra Apr 4, 2023
2b65a0e
fix: print PLATFORM_BRANCH
arjita-mitra Apr 4, 2023
14c59d2
fix: revert config change
arjita-mitra Apr 4, 2023
701041d
fix: delete unused code
arjita-mitra Apr 4, 2023
2dd9495
feat: migrate to new al2 staging env
arjita-mitra Apr 5, 2023
e49becb
refactor: delete unused code
arjita-mitra Apr 5, 2023
4e49bb3
feat: add new branch in the list
arjita-mitra Apr 5, 2023
0c1f7db
feat: add new env to deploy
arjita-mitra Apr 5, 2023
37e25c8
Merge branch 'aws-migration' of https://github.com/wireapp/wire-webap…
arjita-mitra Apr 5, 2023
80f11e4
fix: remove auto deploy of staging new env
arjita-mitra Apr 5, 2023
0add7c0
feat: dev env al2 migration
arjita-mitra Apr 6, 2023
45d0175
feat: migrate edge to amazon al2
arjita-mitra Apr 6, 2023
be39a65
feat: migrate prod env to amazon al2
arjita-mitra Apr 6, 2023
65d935d
feat: migrate master and avs
arjita-mitra Apr 11, 2023
2579971
fix: remove al2 from auto deploy
arjita-mitra Apr 12, 2023
c3fd60e
Merge remote-tracking branch 'origin/dev' into aws-migration
tlebon May 23, 2023
3f7276f
chore: merge dev
tlebon Jun 19, 2023
5220896
chore: small updates to prepare for merge
tlebon Jun 19, 2023
7777a9b
chore: cleaning up things
tlebon Jun 19, 2023
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
4 changes: 2 additions & 2 deletions .elasticbeanstalk/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
branch-defaults:
dev:
environment: wire-webapp-dev
environment: wire-webapp-dev-al2
master:
environment: wire-webapp-master
environment: wire-webapp-master-al2
deploy:
artifact: server/dist/s3/ebs.zip
global:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-to-test-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:
required: true
type: choice
options:
- wire-webapp-qa
- wire-webapp-edge
- wire-webapp-mls
- wire-webapp-qa-al2-migration
arjita-mitra marked this conversation as resolved.
Show resolved Hide resolved
- wire-webapp-edge-al2
- wire-webapp-mls-al2

concurrency:
group: ci-${{ github.ref }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test_build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ jobs:
key: '${{github.ref}}'
map: |
{
"edge": { "dev_env": "wire-webapp-edge" },
"dev": { "dev_env": "wire-webapp-dev" },
"master": { "dev_env": "wire-webapp-master" }
"edge": { "dev_env": "wire-webapp-edge-al2" },
"dev": { "dev_env": "wire-webapp-dev-al2" },
"master": { "dev_env": "wire-webapp-master-al2" }
}

- uses: kanga333/variable-mapper@master
Expand All @@ -104,8 +104,8 @@ jobs:
key: '${{env.TAG}}'
map: |
{
"production": { "prod_env": "wire-webapp-prod" },
"staging": { "prod_env": "wire-webapp-staging" }
"production": { "prod_env": "wire-webapp-prod-al2" },
"staging": { "prod_env": "wire-webapp-staging-al2" }
}

- name: Build
Expand Down
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: npm run start:prod
5 changes: 4 additions & 1 deletion bin/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ const S3_PATH = path.resolve(ROOT_PATH, 'server/dist/s3');

archive.file(path.join(SERVER_PATH, 'package.json'), {name: 'package.json'});
archive.file(path.join(ROOT_PATH, '.env.defaults'), {name: '.env.defaults'});
archive.file(path.join(ROOT_PATH, 'Procfile'), {name: 'Procfile'});
archive.directory(DIST_PATH, false);

fs.mkdirSync(S3_PATH);
if (!fs.existsSync(S3_PATH)) {
fs.mkdirSync(S3_PATH);
}
const output = fs.createWriteStream(path.join(S3_PATH, 'ebs.zip'));

archive.pipe(output);
Expand Down
6 changes: 2 additions & 4 deletions server/.ebextensions/00-environment.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
option_settings:
aws:elasticbeanstalk:container:nodejs:
GzipCompression: true
NodeCommand: "npm run start:prod"
ProxyServer: nginx
aws:elasticbeanstalk:environment:proxy:
ProxyServer: nginx
7 changes: 7 additions & 0 deletions server/.platform/nginx/conf.d/proxy.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
large_client_header_buffers 4 32k;
fastcgi_buffers 16 32k;
fastcgi_buffer_size 32k;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
server_tokens off;