Skip to content

Commit c8dc8f0

Browse files
committed
Add baedeker workflow - in progress
1 parent 2643733 commit c8dc8f0

File tree

3 files changed

+16
-30
lines changed

3 files changed

+16
-30
lines changed

.baedeker/Dockerfile

+15-10
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,28 @@ FROM ubuntu:20.04
22
WORKDIR /substrate
33

44
# show backtraces
5-
ENV RUST_BACKTRACE 1
5+
# ENV RUST_BACKTRACE 1
66

77
# Necessary libraries for Rust execution
8-
RUN apt-get update && \
9-
apt-get install -y curl build-essential protobuf-compiler clang git && \
10-
rm -rf /var/lib/apt/lists/*
8+
# RUN apt-get update && \
9+
# apt-get install -y curl build-essential protobuf-compiler clang git && \
10+
# rm -rf /var/lib/apt/lists/*
1111

1212
# Install cargo and Rust
13-
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
14-
ENV PATH="/root/.cargo/bin:${PATH}"
13+
# RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
14+
# ENV PATH="/root/.cargo/bin:${PATH}"
1515

1616
# Capture dependencies
17-
COPY . .
17+
# COPY . .
1818

1919
# Cargo build
20-
RUN cargo build --release && cp -R ./target /target
21-
EXPOSE 9946
20+
# RUN cargo build --release
21+
# EXPOSE 9946
22+
#RUN cp -R ./target/* /target
2223

2324
# Run the Substrate node binary
24-
CMD ["./scripts/localnet-baedeker.sh"]
25+
#CMD ["./scripts/localnet-baedeker.sh"]
26+
27+
RUN echo "hello from docker" > a.txt
28+
29+
CMD ["bash"]

.github/workflows/check-finney-clone.yml

-17
Original file line numberDiff line numberDiff line change
@@ -167,23 +167,6 @@ jobs:
167167
- name: Check-out repository under $GITHUB_WORKSPACE
168168
uses: actions/checkout@v4
169169

170-
- name: Install dependencies
171-
run: |
172-
sudo apt-get update &&
173-
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
174-
175-
- name: Install Rust ${{ matrix.rust-branch }}
176-
uses: actions-rs/toolchain@v1.0.6
177-
with:
178-
toolchain: ${{ matrix.rust-branch }}
179-
components: rustfmt, clippy
180-
profile: minimal
181-
182-
- name: Utilize Rust shared cached
183-
uses: Swatinem/rust-cache@v2.2.1
184-
with:
185-
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
186-
187170
# - name: Download finney clone genesis and secrets
188171
# uses: actions/download-artifact@v3
189172
# with:

docker-compose-baedeker.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ services:
33
ports:
44
- 9946:9946
55
volumes:
6-
- type: bind
7-
source: ./target
8-
target: /target
6+
- ./target:/substrate
97
build:
108
context: .
119
dockerfile: ./.baedeker/Dockerfile

0 commit comments

Comments
 (0)