Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter Datapod
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
nodes
Duniter Datapod
Commits
12963eb9
Commit
12963eb9
authored
8 months ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
add docker build script
parent
82ad4810
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
scripts/docker-build.sh
+38
-0
38 additions, 0 deletions
scripts/docker-build.sh
with
39 additions
and
1 deletion
Dockerfile
+
1
−
1
View file @
12963eb9
...
...
@@ -7,7 +7,7 @@ COPY ./package.json ./pnpm-lock.yaml /app/
WORKDIR
/app
# build deps
FROM
base
as
deps
FROM
base
AS
deps
RUN
--mount
=
type
=
cache,id
=
pnpm,target
=
/pnpm/store pnpm
install
--frozen-lockfile
# datapod image
...
...
This diff is collapsed.
Click to expand it.
scripts/docker-build.sh
0 → 100755
+
38
−
0
View file @
12963eb9
#!/bin/bash
set
-e
# Get the version number from package.json
version_tag
=
$(
grep
-oP
'"version": "\K[^"]+'
package.json
)
# --- datapod
docker buildx build
-f
Dockerfile
-t
duniter-datapod
.
# Tag with version and 'latest'
docker image tag duniter-datapod h30x/duniter-datapod:
$version_tag
docker image tag duniter-datapod h30x/duniter-datapod:latest
# Push both
docker image push h30x/duniter-datapod:
$version_tag
docker image push h30x/duniter-datapod:latest
# --- kubo
docker buildx build
-f
Dockerfile.Kubo
-t
datapod-kubo
.
# Tag with version and 'latest'
docker image tag datapod-kubo h30x/datapod-kubo:
$version_tag
docker image tag datapod-kubo h30x/datapod-kubo:latest
# Push both
docker image push h30x/datapod-kubo:
$version_tag
docker image push h30x/datapod-kubo:latest
# --- hasura
docker buildx build
-f
Dockerfile.Hasura
-t
datapod-hasura
.
# Tag with version and 'latest'
docker image tag datapod-hasura h30x/datapod-hasura:
$version_tag
docker image tag datapod-hasura h30x/datapod-hasura:latest
# Push both
docker image push h30x/datapod-hasura:
$version_tag
docker image push h30x/datapod-hasura:latest
\ 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