This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +23
-7
lines changed Expand file tree Collapse file tree 6 files changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ jobs:
371
371
372
372
- name : " Install Complement Dependencies"
373
373
run : |
374
- sudo apt-get update && sudo apt-get install -y libolm3 libolm-dev
374
+ sudo apt-get -qq update && sudo apt-get install -qqy libolm3 libolm-dev
375
375
go get -v github.com/haveyoudebuggedit/gotestfmt/v2/cmd/gotestfmt@latest
376
376
377
377
- name : Run actions/checkout@v2 for synapse
Original file line number Diff line number Diff line change
1
+ Make Complement CI logs easier to read.
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ FROM docker.io/python:${PYTHON_VERSION}-slim as requirements
40
40
RUN \
41
41
--mount=type=cache,target=/var/cache/apt,sharing=locked \
42
42
--mount=type=cache,target=/var/lib/apt,sharing=locked \
43
- apt-get update && apt-get install -y git \
43
+ apt-get update -qq && apt-get install -yqq git \
44
44
&& rm -rf /var/lib/apt/lists/*
45
45
46
46
# We install poetry in its own build stage to avoid its dependencies conflicting with
@@ -73,7 +73,7 @@ FROM docker.io/python:${PYTHON_VERSION}-slim as builder
73
73
RUN \
74
74
--mount=type=cache,target=/var/cache/apt,sharing=locked \
75
75
--mount=type=cache,target=/var/lib/apt,sharing=locked \
76
- apt-get update && apt-get install -y \
76
+ apt-get update -qq && apt-get install -yqq \
77
77
build-essential \
78
78
libffi-dev \
79
79
libjpeg-dev \
@@ -118,7 +118,7 @@ LABEL org.opencontainers.image.licenses='Apache-2.0'
118
118
RUN \
119
119
--mount=type=cache,target=/var/cache/apt,sharing=locked \
120
120
--mount=type=cache,target=/var/lib/apt,sharing=locked \
121
- apt-get update && apt-get install -y \
121
+ apt-get update -qq && apt-get install -yqq \
122
122
curl \
123
123
gosu \
124
124
libjpeg62-turbo \
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ FROM matrixdotorg/synapse:$SYNAPSE_VERSION
6
6
RUN \
7
7
--mount=type=cache,target=/var/cache/apt,sharing=locked \
8
8
--mount=type=cache,target=/var/lib/apt,sharing=locked \
9
- apt-get update && \
10
- DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
9
+ apt-get update -qq && \
10
+ DEBIAN_FRONTEND=noninteractive apt-get install -yqq --no-install-recommends \
11
11
redis-server nginx-light
12
12
13
13
# Install supervisord with pip instead of apt, to avoid installing a second
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ FROM matrixdotorg/synapse-workers:$SYNAPSE_VERSION
9
9
10
10
# Install postgresql
11
11
RUN apt-get update && \
12
- DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y postgresql-13
12
+ DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -yqq postgresql-13
13
13
14
14
# Configure a user and create a database for Synapse
15
15
RUN pg_ctlcluster 13 main start && su postgres -c "echo \
Original file line number Diff line number Diff line change 24
24
# Exit if a line returns a non-zero exit code
25
25
set -e
26
26
27
+
28
+ # Helper to emit annotations that collapse portions of the log in GitHub Actions
29
+ echo_if_github () {
30
+ if [[ -n " $GITHUB_WORKFLOW " ]]; then
31
+ echo $*
32
+ fi
33
+ }
34
+
35
+
27
36
# enable buildkit for the docker builds
28
37
export DOCKER_BUILDKIT=1
29
38
@@ -41,14 +50,20 @@ if [[ -z "$COMPLEMENT_DIR" ]]; then
41
50
fi
42
51
43
52
# Build the base Synapse image from the local checkout
53
+ echo_if_github " ::group::Build Docker image: matrixdotorg/synapse"
44
54
docker build -t matrixdotorg/synapse -f " docker/Dockerfile" .
55
+ echo_if_github " ::endgroup::"
45
56
46
57
# Build the workers docker image (from the base Synapse image we just built).
58
+ echo_if_github " ::group::Build Docker image: matrixdotorg/synapse-workers"
47
59
docker build -t matrixdotorg/synapse-workers -f " docker/Dockerfile-workers" .
60
+ echo_if_github " ::endgroup::"
48
61
49
62
# Build the unified Complement image (from the worker Synapse image we just built).
63
+ echo_if_github " ::group::Build Docker image: complement/Dockerfile"
50
64
docker build -t complement-synapse \
51
65
-f " docker/complement/Dockerfile" " docker/complement"
66
+ echo_if_github " ::endgroup::"
52
67
53
68
export COMPLEMENT_BASE_IMAGE=complement-synapse
54
69
You can’t perform that action at this time.
0 commit comments