Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-paesa committed Apr 13, 2023
1 parent 22bbf6a commit f908dcb
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM n3uronhub/n3uron:v1.21.4-amd64

COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD [ "/opt/n3uron/bin/n3uron", "start", "bootstrap" ]
26 changes: 26 additions & 0 deletions balena.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: N3uron Industrial IoT Platform
type: sw.block
version: 1.21.4

description: >-
N3uron is an Industrial Edge Platform for DataOps that streamlines the flow of data between industrial devices
and business applications, either on-premise or in the cloud. N3uron provides an out-of-the-box solution for
data standardization, normalization and contextualization, seamless integration with industrial and IT systems,
efficient information management, and unparalleled scalability and security.
assets:
repository:
type: blob.asset
data:
url: https://github.com/n3uron/n3uron-balenablock-amd64
logo:
type: blob.asset
data:
url: https://raw.githubusercontent.com/n3uron/n3uron-balena/main/logo.png
data:
applicationEnvironmentVariables:
- HOSTNAME: balena-edge01
defaultDeviceType: genericx86-64-ext
supportedDeviceTypes:
- genericx86-64-ext
- intel-nuc
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '2'

services:
n3uron:
build: .
ports:
- "80:8003"
environment:
- HOSTNAME=balena01
volumes:
- config:/opt/n3uron/config
- data:/opt/n3uron/data
- licenses:/opt/n3uron/licenses
- log:/opt/n3uron/log
cap_add:
- SYS_ADMIN
restart: always

volumes:
config:
data:
licenses:
log:
10 changes: 10 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

if [[ -z "$HOSTNAME" ]]; then
echo "HOSTNAME environment variable not set. Using default hostname."
else
echo "Setting hostname to $HOSTNAME"
hostname "$HOSTNAME"
fi

exec "$@"
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f908dcb

Please sign in to comment.