Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
raspbian
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
Docker Build Images
raspbian
Commits
4cb03431
Commit
4cb03431
authored
6 years ago
by
Markus Frosch
Browse files
Options
Downloads
Patches
Plain Diff
Switch to branch layout
parent
1cf37e02
No related branches found
No related tags found
No related merge requests found
Pipeline
#3007
passed
6 years ago
Stage: build
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+1
-2
1 addition, 2 deletions
.gitlab-ci.yml
Dockerfile
+0
-0
0 additions, 0 deletions
Dockerfile
Makefile
+22
-13
22 additions, 13 deletions
Makefile
image.mk
+0
-30
0 additions, 30 deletions
image.mk
stretch/Makefile
+0
-1
0 additions, 1 deletion
stretch/Makefile
with
23 additions
and
46 deletions
.gitlab-ci.yml
+
1
−
2
View file @
4cb03431
...
@@ -19,5 +19,4 @@ build:
...
@@ -19,5 +19,4 @@ build:
tags
:
tags
:
-
docker-build-arm
-
docker-build-arm
script
:
script
:
-
make
-
make all push
-
'
[
"$CI_COMMIT_REF_NAME"
!=
master
]
||
make
push'
This diff is collapsed.
Click to expand it.
stretch/
Dockerfile
→
Dockerfile
+
0
−
0
View file @
4cb03431
File moved
This diff is collapsed.
Click to expand it.
Makefile
+
22
−
13
View file @
4cb03431
TARGETS
:=
stretch
IMAGE_PREFIX
:=
${
DOCKER_IMAGE_PREFIX
}
TARGETS_PUSH
:=
$(
TARGETS:
=
-push
)
ifeq
($(IMAGE_PREFIX),)
TARGETS_CLEAN
:=
$(
TARGETS:
=
-clean
)
IMAGE_PREFIX
:=
icinga/raspbian/
endif
all
:
$(TARGETS)
REGISTRY
:=
${
DOCKER_REGISTRY
}
push
:
$(TARGETS_PUSH)
ifneq
($(REGISTRY),)
clean
:
$(TARGETS_CLEAN)
IMAGE_PREFIX
:=
$(
REGISTRY
)
/
$(
IMAGE_PREFIX
)
endif
$(TARGETS)
:
FROM
:=
$(
shell
grep
FROM Dockerfile |
cut
-d
" "
-f2
)
$(
MA
KE
)
-C
$@
IMAGE
:=
$(
I
MA
GE_PREFIX
)${
CI_COMMIT_REF_NAME
}
$(TARGETS_PUSH)
:
all
:
pull build
$(
MAKE
)
-C
$(
@:-push
=
)
push
$(TARGETS_CLEAN)
:
pull
:
$(
MAKE
)
-C
$(
@:-clean
=
)
clean
docker pull
"
$(
IMAGE
)
"
||
true
docker pull
"
$(
FROM
)
"
.PHONY
:
all push clean $(TARGETS) $(TARGETS_PUSH) $(TARGETS_CLEAN)
build
:
docker build
--cache-from
"
${
IMAGE
}
"
--tag
"
$(
IMAGE
)
"
.
push
:
docker push
"
$(
IMAGE
)
"
clean
:
if
(
docker inspect
--type
image
"
$(
IMAGE
)
"
>
/dev/null 2>&1
)
;
then
docker rmi
"
$(
IMAGE
)
"
;
fi
This diff is collapsed.
Click to expand it.
image.mk
deleted
100644 → 0
+
0
−
30
View file @
1cf37e02
OS
:=
raspbian
IMAGE_PREFIX
:=
${
DOCKER_IMAGE_PREFIX
}
ifeq
($(IMAGE_PREFIX),)
IMAGE_PREFIX
:=
icinga/raspbian/
endif
REGISTRY
:=
${
DOCKER_REGISTRY
}
ifneq
($(REGISTRY),)
IMAGE_PREFIX
:=
$(
REGISTRY
)
/
$(
IMAGE_PREFIX
)
endif
FROM
:=
$(
shell
grep
FROM Dockerfile |
cut
-d
" "
-f2
)
DIST
:=
$(
shell
basename
`
pwd
`
)
IMAGE
:=
$(
IMAGE_PREFIX
)$(
DIST
)
all
:
pull build
pull
:
docker pull
"
$(
IMAGE
)
"
||
true
docker pull
"
$(
FROM
)
"
build
:
docker build
--cache-from
"
${
IMAGE
}
"
--tag
"
$(
IMAGE
)
"
.
push
:
docker push
"
$(
IMAGE
)
"
clean
:
if
(
docker inspect
--type
image
"
$(
IMAGE
)
"
>
/dev/null 2>&1
)
;
then
docker rmi
"
$(
IMAGE
)
"
;
fi
This diff is collapsed.
Click to expand it.
stretch/Makefile
deleted
100644 → 0
+
0
−
1
View file @
1cf37e02
include
../image.mk
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