Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/infratest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Linux Distribution Test Pipeline

on: [push, pull_request]

jobs:
infratest:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup .env file
run: |
cp .env.example .env

- name: Build and run infratest
run: |
cd infratest
cargo run
127 changes: 0 additions & 127 deletions .github/workflows/test.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by Cargo
# will have compiled files and executables
/target/
/infratest/target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Expand All @@ -13,3 +14,6 @@ packhub.asc
secret_key.asc
.env
key.gpg

.DS_Store
**/.DS_Store
9 changes: 0 additions & 9 deletions images/debian12-multi-package.Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions images/debian12.Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions images/fedora42-multi-package.Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions images/fedora42.Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions images/tumbleweed-multi-package.Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions images/ubuntu24.04-multi-package.Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions images/ubuntu24.04.Dockerfile

This file was deleted.

18 changes: 18 additions & 0 deletions infratest/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "infratest"
version = "0.1.0"
edition = "2024"

[dependencies]
bollard = "0.19"
tokio = { version = "1.0", features = ["full"] }
futures-util = "0.3"
anyhow = "1.0"
reqwest = { version = "0.12", features = ["stream", "rustls-tls"] }
tar = "0.4"
testcontainers-modules = { version = "0.13", features = ["mongo"] }
pretty_env_logger = "0.4"
testcontainers = { git = "https://github.com/mominul/testcontainers-rs.git", branch = "platform_config", features = ["http_wait"] }

[patch.crates-io]
testcontainers = { git = "https://github.com/mominul/testcontainers-rs.git", branch = "platform_config" }
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ RUN cargo build

EXPOSE 3000

ENTRYPOINT ["scripts/run_server.sh"]
COPY --chmod=0755 run_server.sh /sbin/run_server

ENTRYPOINT ["/sbin/run_server"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions infratest/scripts/run_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

./target/debug/packhub --generate-keys
Loading