Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Myaktion Go
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
Florian Albrecht
Myaktion Go
Commits
a15488fb
Commit
a15488fb
authored
2 years ago
by
Flnal
Browse files
Options
Downloads
Patches
Plain Diff
es funktioniert!
parent
82ee732e
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Master
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/myaktion/Dockerfile
+0
-1
0 additions, 1 deletion
src/myaktion/Dockerfile
src/myaktion/docker-entrypoint.sh
+2
-2
2 additions, 2 deletions
src/myaktion/docker-entrypoint.sh
src/myaktion/wait-for-it.sh
+1
-1
1 addition, 1 deletion
src/myaktion/wait-for-it.sh
with
3 additions
and
4 deletions
src/myaktion/Dockerfile
+
0
−
1
View file @
a15488fb
FROM
golang:1.20-buster
FROM
golang:1.20-buster
WORKDIR
/go/src/app
WORKDIR
/go/src/app
COPY
. .
COPY
. .
RUN
ls
-l
RUN
go mod download
RUN
go mod download
RUN
go
install
RUN
go
install
RUN
chmod
+x ./wait-for-it.sh ./docker-entrypoint.sh
RUN
chmod
+x ./wait-for-it.sh ./docker-entrypoint.sh
...
...
This diff is collapsed.
Click to expand it.
src/myaktion/docker-entrypoint.sh
+
2
−
2
View file @
a15488fb
...
@@ -5,8 +5,8 @@ set -e
...
@@ -5,8 +5,8 @@ set -e
# Wait for DB
# Wait for DB
if
[
-n
"
$DB_CONNECT
"
]
;
then
if
[
-n
"
$DB_CONNECT
"
]
;
then
/go/src/app/wait-for-it.sh
"
$DB_CONNECT
"
-t
2
0
/go/src/app/wait-for-it.sh
"
$DB_CONNECT
"
-t
4
0
fi
fi
# Run the main container command.
# Run the main container command.
exec
"
$@
"
exec
"
$@
"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/myaktion/wait-for-it.sh
+
1
−
1
View file @
a15488fb
...
@@ -179,4 +179,4 @@ if [[ $WAITFORIT_CLI != "" ]]; then
...
@@ -179,4 +179,4 @@ if [[ $WAITFORIT_CLI != "" ]]; then
exec
"
${
WAITFORIT_CLI
[@]
}
"
exec
"
${
WAITFORIT_CLI
[@]
}
"
else
else
exit
$WAITFORIT_RESULT
exit
$WAITFORIT_RESULT
fi
fi
\ No newline at end of file
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