Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769914
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..a786749
--- /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
index 0000000..1ee4bc2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,51 @@
+# -------------------------------------------------------------
+# Nasqueron Datasources
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: BSD-2-Clause
+# -------------------------------------------------------------
+
+PREFIX=/usr/local
+
+CARGO=${HOME}/.cargo/bin/cargo
+INSTALL=install
+RM=rm -rf
+
+# -------------------------------------------------------------
+# Main targets
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+all: build
+
+build: target/release
+
+test:
+ RUST_TEST_THREADS=1 ${CARGO} test
+
+clean:
+ ${RM} target
+
+clean-all:
+ ${CARGO} clean
+
+install: ${PREFIX}/bin/fantoir-datasource ${PREFIX}/bin/language-subtag-registry-datasource ${PREFIX}/bin/rfc-datasource
+
+# -------------------------------------------------------------
+# Build
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+target/release:
+ ${CARGO} build --release
+
+# -------------------------------------------------------------
+# Install
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+${PREFIX}/bin/fantoir-datasource:
+ ${INSTALL} target/release/fantoir-datasource ${PREFIX}/bin/
+
+${PREFIX}/bin/language-subtag-registry-datasource:
+ ${INSTALL} target/release/language-subtag-registry-datasource ${PREFIX}/bin/
+
+${PREFIX}/bin/rfc-datasource:
+ ${INSTALL} target/release/rfc-datasource ${PREFIX}/bin/
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Nov 25, 18:05 (11 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260679
Default Alt Text
(3 KB)
Attached To
Mode
rDS Nasqueron Datasources
Attached
Detach File
Event Timeline
Log In to Comment