Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
matrix-media-repo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
matrix-media-repo
Commits
1c8d74aa
Commit
1c8d74aa
authored
1 year ago
by
Travis Ralston
Browse files
Options
Downloads
Patches
Plain Diff
Don't try to delete things that don't matter
parent
5ca3f435
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+3
-1
3 additions, 1 deletion
Dockerfile
test/test_internals/deps_mmr.go
+1
-2
1 addition, 2 deletions
test/test_internals/deps_mmr.go
with
4 additions
and
3 deletions
Dockerfile
+
3
−
1
View file @
1c8d74aa
# ---- Stage 0 ----
# Builds media repo binaries
FROM
golang:1.20-alpine
AS
builder
LABEL
io.t2bot.mmr.cleanup="true"
# Install build dependencies
RUN
apk add
--no-cache
git musl-dev dos2unix build-base
...
...
@@ -11,6 +10,9 @@ COPY . /opt
RUN
dos2unix ./build.sh ./docker/run.sh
&&
chmod
744 ./build.sh
RUN
./build.sh
# the label is applied last so we don't pollute the image list with a weird amount of labelled images
LABEL
io.t2bot.mmr.cleanup="true"
# ---- Stage 1 ----
# Final runtime stage.
FROM
alpine
...
...
This diff is collapsed.
Click to expand it.
test/test_internals/deps_mmr.go
+
1
−
2
View file @
1c8d74aa
...
...
@@ -205,8 +205,7 @@ func TeardownMmrCaches() {
if
_
,
err
=
dockerProvider
.
Client
()
.
ImageRemove
(
context
.
Background
(),
imageName
,
types
.
ImageRemoveOptions
{
PruneChildren
:
true
,
});
err
!=
nil
{
log
.
Printf
(
"Error removing MMR cached build image '%s': %s"
,
imageName
,
err
.
Error
())
log
.
Println
()
log
.
Fatalf
(
"Error removing MMR cached build image '%s': %s"
,
imageName
,
err
.
Error
())
}
}
if
images
,
err
:=
dockerProvider
.
Client
()
.
ImageList
(
context
.
Background
(),
types
.
ImageListOptions
{
All
:
true
});
err
!=
nil
{
...
...
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