From 97da9fb5f7a60798f5abc9f44dad5fa81147183e Mon Sep 17 00:00:00 2001
From: Christian Faber <chris-faber@gmx.de>
Date: Fri, 28 Mar 2025 13:58:48 +0100
Subject: [PATCH] Added Rust Testcontainer

---
 README.md                     | 11 +++++++++++
 testing/rust/Dockerfile       |  1 +
 testing/rust/build_command.sh |  4 ++++
 3 files changed, 16 insertions(+)
 create mode 100644 testing/rust/Dockerfile
 create mode 100644 testing/rust/build_command.sh

diff --git a/README.md b/README.md
index 4df47cc..b44d1bb 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,17 @@
 
 Repo for Container registry. Mainly for testing in CI.
 
+## Usage
+Use for example 
+```yml
+image: "registry.jsc.fz-juelich.de/faber1/gitlab-container/testing:rust"
+```
+in your ```.gitlab-ci.yml````.
+
 ## Testing Containers
 ### Rust 
 Bare rust image tag: ```gitlab-container/testing:rust```
+
+
+## Creating container
+Run scripts in the corresponding directories.
diff --git a/testing/rust/Dockerfile b/testing/rust/Dockerfile
new file mode 100644
index 0000000..63970aa
--- /dev/null
+++ b/testing/rust/Dockerfile
@@ -0,0 +1 @@
+FROM rust:latest
diff --git a/testing/rust/build_command.sh b/testing/rust/build_command.sh
new file mode 100644
index 0000000..e422e0d
--- /dev/null
+++ b/testing/rust/build_command.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+docker build --platform="linux/amd64" -t registry.jsc.fz-juelich.de/faber1/gitlab-container/testing:rust .
+docker push registry.jsc.fz-juelich.de/faber1/gitlab-container/testing:rust
-- 
GitLab