Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
fix rust github workflow and playground test
Browse files Browse the repository at this point in the history
Signed-off-by: Jasti Sri Radhe Shyam <[email protected]>
  • Loading branch information
radhe-zeeve committed Dec 13, 2023
1 parent 9dcb656 commit 88e7d0b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ jobs:
- name: Build
run: cargo build --verbose
- name: Pull docker image
run: docker pull docker.io/achimcc/ink-compiler:latest
- name: Tag docker image
run: docker tag docker.io/achimcc/ink-compiler:latest ink-compiler
run: ./scripts/ink-compiler.sh -c pull_specific --specific_version 4.2.0 --docker_user_name radhezeeve
- name: Run tests
run: cargo test --workspace --exclude rust_analyzer_wasm --verbose
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ FROM debian:bullseye-slim

COPY --from=frontend-builder /app/packages/playground/dist /app/packages/playground/dist
COPY --from=backend-builder /app/target/release/backend /app/target/release/backend
COPY --from=base /app/scripts /app/scripts

# Install Docker
# see: https://www.how2shout.com/linux/install-docker-ce-on-debian-11-bullseye-linux/
Expand Down
1 change: 1 addition & 0 deletions packages/docker-tests/__tests__/docker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe('Given the server provides a working compile endpoint', () => {
await expect(
axios.post(`${BACKEND_URL}/compile`, {
source,
version: '4.2.0',
})
).resolves.toMatchObject({ status: 200, data: { type: 'SUCCESS' } });
});
Expand Down
5 changes: 1 addition & 4 deletions sysbox/on-start.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#!/bin/bash

relative_dirname="$(dirname -- "${BASH_SOURCE[0]}")"
bash_dir_path="$(cd -- "${relative_dirname}" && pwd)"

# dockerd start
dockerd > /var/log/dockerd.log 2>&1 &
sleep 2

# pull inner images
${bash_dir_path}/../scripts/ink-compiler.sh -c pull --docker_user_name radhezeeve
/app/scripts/ink-compiler.sh -c pull --docker_user_name radhezeeve

# start backend server
/app/target/release/backend --port 4000 --host 0.0.0.0 --frontend_folder /app/packages/playground/dist

0 comments on commit 88e7d0b

Please sign in to comment.