Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 1252f10

Browse files
author
Success Kingsley
authored
Merge pull request #9 from ToolKitHub/development
Update rce-engine version and dependencies
2 parents 8e5c7d9 + e716c6b commit 1252f10

File tree

8 files changed

+24
-18
lines changed

8 files changed

+24
-18
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: Pull rce-images-python
2525
run: |
26-
docker pull ghcr.io/toolkithub/rce-images-python:edge
26+
docker pull toolkithub/python:edge
2727
2828
- name: Setup docker environment
2929
run: |
@@ -39,7 +39,7 @@ jobs:
3939
output=$(curl -s -X POST \
4040
-H "X-Access-Token: ${{ secrets.RCE_ACCESS_TOKEN }}" \
4141
-H "Content-Type: application/json" \
42-
-d '{"image": "ghcr.io/toolkithub/rce-images-python:edge", "payload": {"language": "python", "files": [{"name": "main.py", "content": "print(42)"}]}}' \
42+
-d '{"image": "toolkithub/python:edge", "payload": {"language": "python", "files": [{"name": "main.py", "content": "print(42)"}]}}' \
4343
http://localhost:50051/run
4444
)
4545

.trunk/trunk.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
33
version: 0.1
44
cli:
5-
version: 1.22.2
5+
version: 1.22.3
66
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
77
plugins:
88
sources:
99
- id: trunk
10-
ref: v1.6.1
10+
ref: v1.6.2
1111
uri: https://github.com/trunk-io/plugins
1212
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
1313
runtimes:
@@ -20,7 +20,7 @@ runtimes:
2020
lint:
2121
enabled:
2222
- actionlint@1.7.1
23-
- checkov@3.2.219
23+
- checkov@3.2.234
2424
- clippy@1.65.0
2525
- git-diff-check
2626
- markdownlint@0.41.0
@@ -32,7 +32,7 @@ lint:
3232
- shfmt@3.6.0
3333
- taplo@0.9.3
3434
- trivy@0.54.1
35-
- trufflehog@3.81.7
35+
- trufflehog@3.81.9
3636
- yamllint@1.35.1
3737
actions:
3838
enabled:

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rce-engine"
3-
version = "1.2.1"
3+
version = "1.2.2"
44
authors = ["Success Kingsley <hello@xosnrdev.tech>"]
55
edition = "2021"
66

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# RCE Engine
1+
# rce-engine
22

33
[![Build Test](https://github.com/ToolKitHub/rce-engine/actions/workflows/test.yml/badge.svg)](https://github.com/ToolKitHub/rce-engine/actions/workflows/test.yml)
44

5+
> An engine for running untrusted code inside transient docker containers.
6+
57
This service provides a http api for running untrusted code inside transient docker containers.
68
For every run request a new container is started and deleted.
79
The payload is passed to the container by attaching to it and writing it to stdin. The result is read from stdout.
@@ -20,7 +22,7 @@ The communication with the docker daemon happens via it's api over the unix sock
2022
When a run request is posted to rce-engine it will create a new temporary container.
2123
The container is required to listen for a json payload on stdin and must write the
2224
run result to stdout as a json object containing the properties: stdout, stderr and error.
23-
The docker images used [here](https://github.com/orgs/ToolKitHub/packages).
25+
The docker images used [here](https://hub.docker.com/u/toolkithub).
2426

2527
## Performance
2628

@@ -58,14 +60,18 @@ Depending on your use-case you should also consider to:
5860
- Drop [capabilities](https://man7.org/linux/man-pages/man7/capabilities.7.html) using `DOCKER_CONTAINER_CAP_DROP`
5961
- Use the [gVisor](https://gvisor.dev/) runtime
6062

61-
## Installation with `CLI` (Recommended)
63+
## How to install
64+
65+
With CLI:
66+
67+
> The following command will install rce-engine on a fresh Ubuntu 22.04 machine or latest.
6268
6369
```bash
6470
curl -fsSL https://raw.githubusercontent.com/toolkithub/rce-engine/main/scripts/install.sh -o install.sh
6571
sudo bash ./install.sh
6672
```
6773

68-
For more control over the installation and configuration:
74+
Manual installation:
6975

7076
- [Run rce-engine with systemd](docs/install/ubuntu-22.04.md) (recommended)
7177
- [Run rce-engine in a docker container](docs/install/docker-ubuntu-22.04.md) (some people run into issues while running rce-engine in a container, see open issues)

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ pkgs ? import <nixpkgs> { } }:
22
pkgs.rustPlatform.buildRustPackage rec {
33
pname = "rce-engine";
4-
version = "1.2.1";
4+
version = "1.2.2";
55
cargoLock.lockFile = ./Cargo.lock;
66
src = pkgs.lib.cleanSource ./.;
77
}

docs/install/ubuntu-22.04.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ usermod -aG docker rce
2828
```bash
2929
mkdir /home/rce/bin
3030
cd /home/rce/bin
31-
wget https://github.com/toolkithub/rce-engine/releases/download/v.1.2.1/rce-engine_linux-x64.tar.gz
31+
wget https://github.com/toolkithub/rce-engine/releases/download/v.1.2.2/rce-engine_linux-x64.tar.gz
3232
tar -zxf rce-engine_linux-x64.tar.gz
3333
rm rce-engine_linux-x64.tar.gz
3434
chown -R rce:rce /home/rce/bin

scripts/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
#+-------------------------------------------------------------------------------------------------------------------------------------+
44
# Author: Success Kingsley <hello@xosnrdev.tech>
5-
# Last Updated: 2024-08-11
6-
# Version: 1.2.1
5+
# Last Updated: 2024-08-20
6+
# Version: 1.2.2
77
# License: MIT
88
# Description: This script installs the rce-engine on an Ubuntu 22.04 or latest machine.
99
# Usage: curl -fsSL https://raw.githubusercontent.com/toolkithub/rce-engine/main/scripts/install.sh -o install.sh \
@@ -75,7 +75,7 @@ sudo mkdir -p /home/rce/bin
7575
cd /home/rce/bin
7676

7777
log "Downloading rce-engine binary..."
78-
curl -LO https://github.com/toolkithub/rce-engine/releases/download/v1.2.1/rce-engine_linux-x64.tar.gz || error "Failed to download rce-engine binary"
78+
curl -LO https://github.com/toolkithub/rce-engine/releases/download/v1.2.2/rce-engine_linux-x64.tar.gz || error "Failed to download rce-engine binary"
7979

8080
log "Extracting rce-engine binary..."
8181
sudo tar -zxf rce-engine_linux-x64.tar.gz || error "Failed to extract rce-engine binary"
@@ -172,7 +172,7 @@ trim_whitespace() {
172172
pull_language_image() {
173173
local language=$1
174174
log "Pulling image for ${language}..."
175-
if ! docker pull ghcr.io/toolkithub/rce-images-$(convert_to_lowercase "${language}"):edge; then
175+
if ! docker pull toolkithub/$(convert_to_lowercase "${language}"):edge; then
176176
error "Failed to pull image for ${language}"
177177
return 1
178178
fi

0 commit comments

Comments
 (0)