-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Former-commit-id: 6b508f0 Former-commit-id: f279b0b10add514266481fffe7dbd08ae0cacfbb
- Loading branch information
1 parent
fcf8384
commit 2373f4e
Showing
9 changed files
with
82 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ outputs/ | |
node_modules/ | ||
.npmrc | ||
lunatrace/cli/test/** | ||
lunatrace/bsl/backend-cdk/cdk.out |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ node_modules | |
cdk.out | ||
|
||
cdk.context.json | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
OUT_DIR=build/ | ||
|
||
saved_dir=$PWD | ||
|
||
change-dir() { | ||
saved_dir=$PWD | ||
if ! cd "$1" ; then | ||
echo "Unable to cd to $1" | ||
exit 1 | ||
fi | ||
} | ||
|
||
reset-dir() { | ||
change-dir "$saved_dir" | ||
} | ||
|
||
change-dir ../../.. | ||
if ! docker build . -f lunatrace/bsl/repo-bootstrap.dockerfile -t repo-bootstrap ; then | ||
echo "unable to build repo-bootstrap" | ||
exit 1 | ||
fi | ||
reset-dir | ||
|
||
change-dir ../frontend | ||
if ! docker build . -t lunatrace-frontend ; then | ||
echo "unable to build lunatrace-frontend" | ||
exit 1 | ||
fi | ||
reset-dir | ||
|
||
change-dir ../backend | ||
if ! docker build --target backend-express-server . -t lunatrace-backend ; then | ||
echo "unable to build lunatrace-backend" | ||
exit 1 | ||
fi | ||
reset-dir | ||
|
||
change-dir ../backend | ||
if ! docker build --target backend-queue-processor . -t lunatrace-backend-queue-processor ; then | ||
echo "unable to build lunatrace-backend-queue-processor" | ||
exit 1 | ||
fi | ||
reset-dir | ||
|
||
mkdir -p $OUT_DIR | ||
docker save -o $OUT_DIR/lunatrace-frontend.tar lunatrace-frontend | ||
docker save -o $OUT_DIR/lunatrace-backend.tar lunatrace-backend | ||
docker save -o $OUT_DIR/lunatrace-backend-queue-processor.tar lunatrace-backend-queue-processor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright by LunaSec (owned by Refinery Labs, Inc) | ||
* | ||
* Licensed under the Business Source License v1.1 | ||
* (the "License"); you may not use this file except in compliance with the | ||
* License. You may obtain a copy of the License at | ||
* | ||
* https://github.com/lunasec-io/lunasec/blob/master/licenses/BSL-LunaTrace.txt | ||
* | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
import * as path from "path"; | ||
|
||
export function getContainerTarballPath(filename: string): string { | ||
return path.join(__dirname, '../build', filename); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters