Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EventsAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
jards
EventsAPI
Commits
010df4d8
Commit
010df4d8
authored
7 years ago
by
Carsten Karbach
Browse files
Options
Downloads
Patches
Plain Diff
Use correct tag for building, add launch container script
parent
b9aa44f1
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
build_docker.sh
+1
-1
1 addition, 1 deletion
build_docker.sh
launch_docker.sh
+3
-0
3 additions, 0 deletions
launch_docker.sh
utils/Commands.txt
+6
-0
6 additions, 0 deletions
utils/Commands.txt
with
10 additions
and
1 deletion
build_docker.sh
+
1
−
1
View file @
010df4d8
...
...
@@ -12,7 +12,7 @@ if test -e "$APACHE_SSL_CERT_KEY";then
cp
$APACHE_SSL_CERT_KEY
./servercerts/ssl-cert-eventsapi.key
fi
docker build
-t
karbach/
events
api:v1
.
docker build
-t
karbach/
rest
api:v1
.
#Clear automatically created folders
rm
-rf
./servercerts
This diff is collapsed.
Click to expand it.
launch_docker.sh
0 → 100755
+
3
−
0
View file @
010df4d8
#!/bin/bash
docker run
-d
-p
443:443
-p
80:80 karbach/restapi:v1
This diff is collapsed.
Click to expand it.
utils/Commands.txt
+
6
−
0
View file @
010df4d8
...
...
@@ -5,3 +5,9 @@ docker run -d -p 443:443 -p 80:80 karbach/restapi:v1
docker exec -ti <container-id> /bin/bash
# Add volume for data backup
docker run -d -p 8081:80 -p 4433:443 -v /path/to/folder/on/host:/var/www/html/EventsAPI/data karbach/restapi:v1
# Build with certificates:
- create folder ./configs/certificates
- add the files ./configs/certificates/ssl-cert-eventsapi.pem and ./configs/certificates/ssl-cert-eventsapi.key as certificate and key file
- go into EventsAPI root folder and run ./build_docker.sh
- launch the container with ./launch_docker.sh
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