remame coolify_compose.yaml remove old scripts

This commit is contained in:
2024-11-25 10:11:24 -06:00
parent 6542227cc5
commit 2a03866180
7 changed files with 10 additions and 55 deletions

1
.env
View File

@@ -1 +0,0 @@
JWT_SECRET=cab2f6a968c2a11601bb33c41c5940b7

View File

@@ -25,10 +25,10 @@ RUN go build
FROM debian:bookworm-slim FROM debian:bookworm-slim
#ENV FRONTEND_HOST=https://app.nkode.tech #ENV FRONTEND_HOST=https://app.nkode.tech
ENV FRONTEND_HOST=http://localhost:8090 #ENV FRONTEND_HOST=http://localhost:8090
ENV SVG_DIR=/app/data/icons #ENV SVG_DIR=/app/data/icons
ENV DB_PATH=/app/data/sqlite/nkode.db #ENV DB_PATH=/app/data/sqlite/nkode.db
ENV SQLITE_DB=/app/data/sqlite/nkode.db #ENV SQLITE_DB=/app/data/sqlite/nkode.db
# Set the working directory inside the runtime container # Set the working directory inside the runtime container
WORKDIR /app WORKDIR /app

View File

@@ -1,14 +1,14 @@
version: '3.9'
services: services:
go-nkode: go-nkode:
container_name: go-nkode container_name: go-nkode
build: # This tells Docker Compose to build the image first image: registry.infra.nkode.tech/go-nkode
context: .
volumes: volumes:
- /var/go-nkode/sqlite:/app/data/sqlite - /var/go-nkode/sqlite:/app/data/sqlite
- /var/go-nkode/icons:/app/data/icons - /var/go-nkode/icons:/app/data/icons
# .env should contain JWT_SECRET
environment: environment:
- JWT_SECRET=${JWT_SECRET} - JWT_SECRET=${JWT_SECRET}
- FRONTEND_HOST=${FRONTEND_HOST}
- SVG_DIR=${SVG_DIR}
- DB_PATH=${DB_PATH}
- SQLITE_DB=${SQLITE_DB}

View File

@@ -1,25 +0,0 @@
#!/bin/bash
# Create a temporary directory to hold the files
#mkdir -p /tmp/nkodeapi
#
#cp -r ./core/* /tmp/nkodeapi/
#cp -r ./hashset/* /tmp/nkodeapi/
#cp -r ./py-builtin/* /tmp/nkodeapi/
#cp -r ./util/* /tmp/nkodeapi/
#
#cp go.mod /tmp/nkodeapi/
#cp main.go /tmp/nkodeapi/
# Disable extended attributes and create the tar file
export COPYFILE_DISABLE=1
tar -cvf go-nkode.tar -C ../ go-nkode
#scp go-nkode.tar dkelly@api.nkode.tech:/home/dkelly
scp api.nkode.tech dkelly@217.21.78.137:/home/dkelly
scp go-nkode.tar dkelly@217.21.78.137:/home/dkelly
rm go-nkode.tar

View File

@@ -1 +1 @@
docker build -t go-nkode . docker buildx build --platform linux/amd64,linux/arm64 -t registry.infra.nkode.tech/go-nkode:latest --push .

View File

@@ -1,5 +0,0 @@
docker run --name go-nkode -p 8080:8080 \
-v /Users/donov/databases/:/app/data/sqlite \
-v /Users/donov/Desktop/go-nkode/core/sqlite-init/flaticon_colored_svgs/:/app/data/icons \
-e JWT_SECRET=cab2f6a968c2a11601bb33c41c5940b7 \
go-nkode

View File

@@ -1,14 +0,0 @@
#!/bin/bash
# Define the number of bytes you want to generate
num_bytes=16
# Use dd to read cryptographically secure bytes from /dev/urandom
# and convert them to hexadecimal using od
secure_bytes=$(dd if=/dev/urandom bs=1 count=$num_bytes 2>/dev/null | od -An -tx1)
# Remove leading/trailing spaces and concatenate the hex bytes into a single string
secure_bytes=$(echo $secure_bytes | tr -d ' \n')
# Output the result as a hexadecimal string
echo "Cryptographically secure bytes (as hex): $secure_bytes"