Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jupyter-base
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
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
Emmanuel Bruno
jupyter-base
Commits
6d97aebc
Commit
6d97aebc
authored
2 years ago
by
Emmanuel Bruno
Browse files
Options
Downloads
Patches
Plain Diff
cleans CI.
parent
2d7a20f9
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.github/workflows/ci.yml
+2
-0
2 additions, 0 deletions
.github/workflows/ci.yml
Dockerfile
+4
-0
4 additions, 0 deletions
Dockerfile
build.sh
+1
-12
1 addition, 12 deletions
build.sh
env.sh
+0
-11
0 additions, 11 deletions
env.sh
push.sh
+0
-12
0 additions, 12 deletions
push.sh
with
7 additions
and
35 deletions
.github/workflows/ci.yml
+
2
−
0
View file @
6d97aebc
...
@@ -43,6 +43,8 @@ jobs:
...
@@ -43,6 +43,8 @@ jobs:
# uses: docker/setup-qemu-action@v2
# uses: docker/setup-qemu-action@v2
-
name
:
Set up Docker Buildx
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v2
uses
:
docker/setup-buildx-action@v2
with
:
driver
:
docker
-
name
:
Build and push
-
name
:
Build and push
uses
:
docker/build-push-action@v4
uses
:
docker/build-push-action@v4
with
:
with
:
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
4
−
0
View file @
6d97aebc
...
@@ -11,6 +11,10 @@ ARG DOCKER_CONFIG="/usr/local/lib/docker/cli-plugins"
...
@@ -11,6 +11,10 @@ ARG DOCKER_CONFIG="/usr/local/lib/docker/cli-plugins"
USER
root
USER
root
ARG
TARGETPLATFORM
ARG
BUILDPLATFORM
RUN
echo
"I am running on
$BUILDPLATFORM
, building for
$TARGETPLATFORM
"
# Copy the list artefacts to install
# Copy the list artefacts to install
# Ubuntu and PIP packages, ...
# Ubuntu and PIP packages, ...
COPY
Artefacts/ /tmp/Artefacts/
COPY
Artefacts/ /tmp/Artefacts/
...
...
This diff is collapsed.
Click to expand it.
build.sh
+
1
−
12
View file @
6d97aebc
#!/bin/bash
docker build
--progress
=
plain
-t
brunoe/jupyter-base:develop
.
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
.
${
DIR
}
/env.sh
#DOCKER_BUILDKIT=1 docker build \
docker buildx build
\
--file
Dockerfile
\
-t
${
BASE
}
:
$SHA
\
`
[[
"
$BRANCH
"
!=
"master"
]]
&&
echo
-t
${
BASE
}
:
$BRANCH
`
\
`
[[
"
$BRANCH
"
==
"master"
]]
&&
echo
-t
${
BASE
}
:latest
`
$@
\
.
This diff is collapsed.
Click to expand it.
env.sh
deleted
100755 → 0
+
0
−
11
View file @
2d7a20f9
#!/bin/bash
REGISTRY
=
brunoe
IMAGE_NAME
=
${
PWD
##*/
}
CURRENT
=
`
pwd
`
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
cd
$DIR
BASE
=
${
REGISTRY
}
/
${
IMAGE_NAME
}
BRANCH
=
`
git rev-parse
--abbrev-ref
HEAD|tr
'/'
'_'
`
SHA
=
`
git log
-1
--pretty
=
%h
`
cd
$CURRENT
This diff is collapsed.
Click to expand it.
push.sh
deleted
100755 → 0
+
0
−
12
View file @
2d7a20f9
#!/bin/bash
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
echo
$DIR
.
${
DIR
}
/env.sh
BASE
=
${
REGISTRY
}
/
${
IMAGE_NAME
}
BRANCH
=
`
git rev-parse
--abbrev-ref
HEAD
`
echo
Branche:
$BRANCH
docker push
${
BASE
}
--all-tags
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