Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SWP_2019_Sancus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leo1995
SWP_2019_Sancus
Commits
868f07eb
Commit
868f07eb
authored
4 years ago
by
leo1995
Browse files
Options
Downloads
Patches
Plain Diff
...
parent
94a86ce8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/Makefile
+6
-6
6 additions, 6 deletions
docker/Makefile
docker/Makefile.config
+29
-5
29 additions, 5 deletions
docker/Makefile.config
with
35 additions
and
11 deletions
docker/Makefile
+
6
−
6
View file @
868f07eb
...
@@ -14,14 +14,14 @@ FILES = $(realpath ../../src)
...
@@ -14,14 +14,14 @@ FILES = $(realpath ../../src)
all
:
build run
all
:
build run
build
:
build
:
docker build
-t
$(
SANCUS_DOCKER_NODE1
)
--build-arg
SANCUS_SECURITY
=
$(
SANCUS_SECURITY
)
--build-arg
SANCUS_KEY
=
$(
SANCUS_KEY
)
-f
$(
DOCKERFILE_NODE1
)
.
docker build
-t
$(
SANCUS_DOCKER_NODE1
)
--build-arg
SANCUS_SECURITY
=
$(
SANCUS_SECURITY
)
--build-arg
SANCUS_KEY
=
$(
SANCUS_KEY
1
)
-f
$(
DOCKERFILE_NODE1
)
.
docker build
-t
$(
SANCUS_DOCKER_NODE2
)
--build-arg
SANCUS_SECURITY
=
$(
SANCUS_SECURITY
)
--build-arg
SANCUS_KEY
=
$(
SANCUS_KEY
)
-f
$(
DOCKERFILE_NODE2
)
.
docker build
-t
$(
SANCUS_DOCKER_NODE2
)
--build-arg
SANCUS_SECURITY
=
$(
SANCUS_SECURITY
)
--build-arg
SANCUS_KEY
=
$(
SANCUS_KEY
2
)
-f
$(
DOCKERFILE_NODE2
)
.
docker build
-t
$(
SANCUS_DOCKER_SWP
)
--build-arg
SANCUS_SECURITY
=
$(
SANCUS_SECURITY
)
--build-arg
SANCUS_KEY
=
$(
SANCUS_KEY
)
-f
$(
DOCKERFILE_SWP
)
.
docker build
-t
$(
SANCUS_DOCKER_SWP
)
--build-arg
SANCUS_SECURITY
=
$(
SANCUS_SECURITY
)
--build-arg
SANCUS_KEY
=
$(
SANCUS_KEY
3
)
-f
$(
DOCKERFILE_SWP
)
.
container
:
container
:
docker run
-d
--network
=
"host"
-v
'
$(
FILES
)
:/src'
-w
/src
--name
$(
CONTAINER_NODE1
)
$(
SANCUS_DOCKER_NODE1
)
#
/bin/bash
docker run
-it
-d
--network
=
"host"
-v
'
$(
FILES
)
:/src'
-w
/src
--name
$(
CONTAINER_NODE1
)
$(
SANCUS_DOCKER_NODE1
)
/bin/bash
docker run
-d
--network
=
"host"
-v
'
$(
FILES
)
:/src'
-w
/src
--name
$(
CONTAINER_NODE2
)
$(
SANCUS_DOCKER_NODE2
)
#
/bin/bash
docker run
-it
-d
--network
=
"host"
-v
'
$(
FILES
)
:/src'
-w
/src
--name
$(
CONTAINER_NODE2
)
$(
SANCUS_DOCKER_NODE2
)
/bin/bash
docker run
-d
--network
=
"host"
-v
'
$(
FILES
)
:/src'
-w
/src
--name
$(
CONTAINER_SWP
)
$(
SANCUS_DOCKER_SWP
)
#
/bin/bash
docker run
-it
-d
--network
=
"host"
-v
'
$(
FILES
)
:/src'
-w
/src
--name
$(
CONTAINER_SWP
)
$(
SANCUS_DOCKER_SWP
)
/bin/bash
run
:
run
:
@
echo
"Starting container
$(
CONTAINER
)
"
@
echo
"Starting container
$(
CONTAINER
)
"
...
...
This diff is collapsed.
Click to expand it.
docker/Makefile.config
+
29
−
5
View file @
868f07eb
...
@@ -11,14 +11,38 @@ SUPPORT_PKGS_URL = https://distrinet.cs.kuleuven.be/software/sancus/downloads
...
@@ -11,14 +11,38 @@ SUPPORT_PKGS_URL = https://distrinet.cs.kuleuven.be/software/sancus/downloads
ifndef
SANCUS_SECURITY
ifndef
SANCUS_SECURITY
SANCUS_SECURITY
=
64
SANCUS_SECURITY
=
64
endif
endif
ifndef
SANCUS_KEY
ifndef
SANCUS_KEY
1
ifeq
($(
SANCUS_SECURITY
),
64
)
ifeq
($(
SANCUS_SECURITY
),
64
)
SANCUS_KEY
=
deadbeefcafebabe
SANCUS_KEY
1
=
deadbeefcafebabe
else
else
ifeq
($(
SANCUS_SECURITY
),
128
)
ifeq
($(
SANCUS_SECURITY
),
128
)
SANCUS_KEY
=
deadbeefcafebabec0defeeddefec8ed
SANCUS_KEY
1
=
deadbeefcafebabec0defeeddefec8ed
else
else
$(
error
SANCUS_KEY
not
defined
(
security
level
$(
SANCUS_SECURITY
)))
$(
error
SANCUS_KEY1
not
defined
(
security
level
$(
SANCUS_SECURITY
)))
endif
endif
endif
ifndef
SANCUS_KEY2
ifeq
($(
SANCUS_SECURITY
),
64
)
SANCUS_KEY2
=
aaaabeefcafeaaaa
else
ifeq
($(
SANCUS_SECURITY
),
128
)
SANCUS_KEY2
=
aaaabeefcafebabec0defeeddefeaaaa
else
$(
error
SANCUS_KEY2
not
defined
(
security
level
$(
SANCUS_SECURITY
)))
endif
endif
endif
ifndef
SANCUS_KEY3
ifeq
($(
SANCUS_SECURITY
),
64
)
SANCUS_KEY3
=
bbbbbeefcafebbbb
else
ifeq
($(
SANCUS_SECURITY
),
128
)
SANCUS_KEY3
=
bbbbbeefcafebabec0defeeddefebbbb
else
$(
error
SANCUS_KEY3
not
defined
(
security
level
$(
SANCUS_SECURITY
)))
endif
endif
endif
endif
endif
endif
...
@@ -30,4 +54,4 @@ endif
...
@@ -30,4 +54,4 @@ endif
# ---------------------------------------------------------------------------
# ---------------------------------------------------------------------------
SET_ENV
=
export
PATH
=$(
SANCUS_INSTALL_PREFIX
)/
bin
:$$
PATH
; \
SET_ENV
=
export
PATH
=$(
SANCUS_INSTALL_PREFIX
)/
bin
:$$
PATH
; \
export
LD_LIBRARY_PATH
=$(
SANCUS_INSTALL_PREFIX
)/
lib
:$$
LD_LIBRARY_PATH
;
export
LD_LIBRARY_PATH
=$(
SANCUS_INSTALL_PREFIX
)/
lib
:$$
LD_LIBRARY_PATH
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment