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
e06adfad
Commit
e06adfad
authored
7 years ago
by
Carsten Karbach
Browse files
Options
Downloads
Patches
Plain Diff
Allow to add client certificate during docker build
parent
4841ea74
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
+4
-0
4 additions, 0 deletions
build_docker.sh
launch_docker.sh
+2
-1
2 additions, 1 deletion
launch_docker.sh
utils/sync.sh
+1
-0
1 addition, 0 deletions
utils/sync.sh
with
7 additions
and
1 deletion
build_docker.sh
+
4
−
0
View file @
e06adfad
...
...
@@ -3,6 +3,8 @@
APACHE_SSL_CERT
=
./configs/certificates/ssl-cert-eventsapi.pem
APACHE_SSL_CERT_KEY
=
./configs/certificates/ssl-cert-eventsapi.key
CLIENT_CERT_NAME
=
docker
# Create local relative folder for certificates
mkdir
./servercerts
if
test
-e
"
$APACHE_SSL_CERT
"
;
then
...
...
@@ -12,6 +14,8 @@ if test -e "$APACHE_SSL_CERT_KEY";then
cp
$APACHE_SSL_CERT_KEY
./servercerts/ssl-cert-eventsapi.key
fi
cp
./configs/certificates/
"
$CLIENT_CERT_NAME
"
*
./servercerts/
cp
~/workspace/dockerenv/
*
.rpm rpms
docker build
-t
karbach/restapi:v1
.
...
...
This diff is collapsed.
Click to expand it.
launch_docker.sh
+
2
−
1
View file @
e06adfad
#!/bin/bash
# docker run -d -p 443:443 -p 80:80 -v /home/jards/workspace/EventsAPI/dev:/var/www/html/EventsAPI -v /home/jards/workspace/EventsAPI/otherconfigs/ssh:/root/.ssh karbach/restapi:v1
docker run
-d
-p
443:443
-p
80:80 karbach/restapi:v1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
utils/sync.sh
+
1
−
0
View file @
e06adfad
...
...
@@ -48,6 +48,7 @@ find $FOLDER -type f -name '*.shell' -exec chmod 711 {} +
find
$FOLDER
-type
f
-name
'*.phar'
-exec
chmod
711
{}
+
find
$FOLDER
-type
f
-name
'pre-commit'
-exec
chmod
711
{}
+
chmod
777
'./data'
chmod
755
'./rest/events'
COMPOSER_SUCCESS
=
1
...
...
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