Page MenuHomeDevCentral

D3282.id8448.diff
No OneTemporary

D3282.id8448.diff

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,41 @@
+# -------------------------------------------------------------
+# Nasqueron - Docker image for Nasqueron Datasources
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: BSD-2-Clause
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Builder phase
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+FROM debian:bookworm AS builder
+
+RUN apt update && \
+ apt install -y git curl build-essential pkg-config \
+ libpq-dev libssl-dev && \
+ rm -r /var/lib/apt/lists/* && \
+ mkdir -p /opt/datasources && \
+ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
+
+WORKDIR /opt/datasources
+ADD . ./
+
+RUN make all
+
+# -------------------------------------------------------------
+# Release phase
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+FROM debian:bookworm
+MAINTAINER Sébastien Santoro aka Dereckson <dereckson+nasqueron-docker@espace-win.org>
+
+RUN apt update && \
+ apt install -y unzip libpq5 ca-certificates && \
+ rm -r /var/lib/apt/lists/*
+
+COPY --from=builder \
+ /opt/datasources/target/release/fantoir-datasource \
+ /opt/datasources/target/release/language-subtag-registry-datasource \
+ /opt/datasources/target/release/rfc-datasource \
+ /usr/local/bin/
diff --git a/Makefile b/Makefile
new file mode 100644
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,47 @@
+# -------------------------------------------------------------
+# Nasqueron Datasources
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: BSD-2-Clause
+# -------------------------------------------------------------
+
+CARGO=${HOME}/.cargo/bin/cargo
+
+# -------------------------------------------------------------
+# Main targets
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+all: build
+
+build: target/release
+
+test:
+ RUST_TEST_THREADS=1 ${CARGO} test
+
+clean:
+ rm -rf target
+
+clean-all:
+ ${CARGO} clean
+
+install: /usr/local/bin/fantoir-datasource /usr/local/bin/language-subtag-registry-datasource /usr/local/bin/rfc-datasource
+
+# -------------------------------------------------------------
+# Build
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+target/release:
+ ${CARGO} build --release
+
+# -------------------------------------------------------------
+# Install
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/usr/local/bin/fantoir-datasource:
+ install target/release/fantoir-datasource /usr/local/bin/
+
+/usr/local/bin/language-subtag-registry-datasource:
+ install target/release/language-subtag-registry-datasource /usr/local/bin/
+
+/usr/local/bin/rfc-datasource:
+ install target/release/rfc-datasource /usr/local/bin/

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 03:37 (51 m, 56 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259456
Default Alt Text
D3282.id8448.diff (2 KB)

Event Timeline