Skip to content

Commit f99215d

Browse files
chore: update docker-compose to support DA Sequencer, particularly for local usages (#1253)
Co-authored-by: musitdev <[email protected]>
1 parent 06b1562 commit f99215d

File tree

51 files changed

+145
-1011
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+145
-1011
lines changed

.github/workflows/build-push-container.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ on:
1818
jobs:
1919
container-build:
2020
name: Build ${{ inputs.container_name }} ${{ matrix.architecture }}
21-
if: >
22-
(github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'cicd:movement-containers')
23-
|| github.ref == 'refs/heads/main'
24-
|| startsWith(github.ref, 'refs/tags/')
2521
strategy:
2622
matrix:
2723
architecture: [x86_64, arm64]

.github/workflows/build-push-containers-all.yml

Lines changed: 0 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,8 @@ run-name: Building containers for ${{ github.event.pull_request.head || github.r
33

44
on:
55
pull_request:
6-
types:
7-
- labeled
8-
- opened
9-
- synchronize
106

117
push:
12-
branches:
13-
- main
14-
tags:
15-
- '[0-9]*.[0-9]*.[0-9]*'
168

179
jobs:
1810

@@ -35,22 +27,13 @@ jobs:
3527
strategy:
3628
matrix:
3729
container_name:
38-
- movement-celestia-da-light-node
39-
- movement-celestia-appd
40-
- movement-celestia-bridge
41-
- movement-full-node-setup
42-
- wait-for-celestia-light-node
4330
- movement-full-node
4431
- movement-faucet-service
45-
- movement-tests-e2e-simple-interaction
4632
- movement-indexer
47-
- movement-tests-e2e-followers-consistent
48-
- movement-util
4933
with:
5034
container_name: ${{ matrix.container_name }}
5135

5236
build-push-checked-manifest:
53-
if: github.event.label.name == 'cicd:movement-containers' || github.ref == 'refs/heads/main' || github.event.label.name == 'cicd:movement-containers'
5437
uses: ./.github/workflows/build-push-manifest.yml
5538
name: Build Push Checked Manifest
5639
needs:
@@ -59,97 +42,8 @@ jobs:
5942
strategy:
6043
matrix:
6144
container_name:
62-
- movement-celestia-da-light-node
63-
- movement-celestia-appd
64-
- movement-celestia-bridge
65-
- movement-full-node-setup
66-
- wait-for-celestia-light-node
6745
- movement-full-node
6846
- movement-faucet-service
69-
- movement-tests-e2e-simple-interaction
7047
- movement-indexer
71-
- movement-tests-e2e-followers-consistent
72-
- movement-util
7348
with:
7449
container_name: ${{ matrix.container_name }}
75-
76-
container-checks:
77-
if: github.event.label.name == 'cicd:movement-containers' || github.ref == 'refs/heads/main' || github.event.label.name == 'cicd:movement-containers'
78-
runs-on: buildjet-16vcpu-ubuntu-2204
79-
needs:
80-
- build-push-checked-manifest
81-
steps:
82-
83-
- name: Checkout repository
84-
uses: actions/checkout@v4
85-
with:
86-
submodules: true
87-
ref: ${{ github.event.pull_request.head.ref || github.ref }}
88-
89-
- name: Install Nix
90-
uses: DeterminateSystems/nix-installer-action@main
91-
92-
- name: Read the commit SHA
93-
id: vars
94-
run: |
95-
commit_hash=$(git rev-parse HEAD | cut -c1-7)
96-
echo CONTAINER_REV=${commit_hash}
97-
echo "CONTAINER_REV=${commit_hash}" >> .env
98-
99-
100-
- name: Display .env file
101-
run: cat .env
102-
103-
- name: Install dependencies
104-
run: |
105-
sudo apt-get update
106-
sudo apt-get install -y wget
107-
108-
109-
- name: Install docker-ce-cli
110-
run: |
111-
sudo apt-get install -y docker-ce-cli
112-
113-
- name: Verify Docker Installation
114-
run: |
115-
docker compose version
116-
docker --version
117-
docker version
118-
119-
- name: Run docker-compose local.setup.test
120-
run: |
121-
nix develop --command bash -c "just container-tests"
122-
# run again to test restarts
123-
# nix develop --command bash -c "just container-tests"
124-
125-
### Unchecked containers
126-
127-
build-push-unchecked-containers:
128-
if: contains(github.event.pull_request.labels.*.name, 'cicd:bridge-containers') || github.ref == 'refs/heads/main' || github.event.label.name == 'cicd:bridge-containers'
129-
130-
uses: ./.github/workflows/build-push-container.yml
131-
name: Build Push Unchecked Containers
132-
secrets: inherit
133-
strategy:
134-
matrix:
135-
container_name:
136-
- bridge-service
137-
- bridge-setup
138-
- helios
139-
with:
140-
container_name: ${{ matrix.container_name }}
141-
142-
build-push-unchecked-manifest:
143-
uses: ./.github/workflows/build-push-manifest.yml
144-
name: Build Push Unchecked Manifest
145-
needs:
146-
- build-push-unchecked-containers
147-
secrets: inherit
148-
strategy:
149-
matrix:
150-
container_name:
151-
- bridge-service
152-
- bridge-setup
153-
- helios
154-
with:
155-
container_name: ${{ matrix.container_name }}

Cargo.lock

Lines changed: 4 additions & 84 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ members = [
4242
"protocol-units/execution/maptos/framework/releases/*",
4343
"protocol-units/execution/maptos/framework/migrations/*",
4444
"protocol-units/da-sequencer/config",
45-
"protocol-units/da-sequencer/setup",
4645
"protocol-units/da-sequencer/client",
4746
"protocol-units/da-sequencer/node"
4847
]

docker/build/bridge-service/Dockerfile

Lines changed: 0 additions & 26 deletions
This file was deleted.

docker/build/bridge-setup/Dockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

docker/build/helios/Dockerfile

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)