forked from itsumura-h/nim-basolato
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add Debian * add scss style in example * add centos * change check libsass exists process * rm prefix for session id * add key generate command * update session * remove utils
- Loading branch information
1 parent
cb65d61
commit f156066
Showing
43 changed files
with
427 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,4 @@ karax | |
*.log.* | ||
*.db | ||
*.db.* | ||
*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM centos:centos8.4.2105 | ||
|
||
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*; | ||
RUN dnf update -y && \ | ||
dnf makecache | ||
RUN dnf install -y --enablerepo=powertools \ | ||
gcc \ | ||
vim \ | ||
wget \ | ||
git \ | ||
libsass-devel | ||
|
||
WORKDIR /root | ||
RUN wget https://nim-lang.org/download/nim-1.6.2-linux_x64.tar.xz && \ | ||
tar -Jxf nim-1.6.2-linux_x64.tar.xz && \ | ||
rm -f nim-1.6.2-linux_x64.tar.xz && \ | ||
mkdir /root/.nimble && \ | ||
mv nim-1.6.2/* .nimble/ | ||
|
||
ENV PATH $PATH:/root/.nimble/bin | ||
WORKDIR /root/project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM debian:11.2-slim | ||
|
||
RUN apt update && \ | ||
apt upgrade -y | ||
RUN apt install -y --no-install-recommends \ | ||
gcc \ | ||
xz-utils \ | ||
ca-certificates \ | ||
vim \ | ||
wget \ | ||
git \ | ||
sqlite3 \ | ||
libpq-dev \ | ||
libmariadb-dev \ | ||
libsass-dev | ||
|
||
WORKDIR /root | ||
RUN wget https://nim-lang.org/download/nim-1.6.2-linux_x64.tar.xz && \ | ||
tar -Jxf nim-1.6.2-linux_x64.tar.xz && \ | ||
rm -f nim-1.6.2-linux_x64.tar.xz && \ | ||
mkdir /root/.nimble && \ | ||
mv nim-1.6.2/* .nimble/ | ||
|
||
ENV PATH $PATH:/root/.nimble/bin | ||
WORKDIR /root/project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM nimlang/nim:1.6.2-ubuntu-regular | ||
|
||
RUN apt update; apt install -y libgnutls30 && \ | ||
apt update && \ | ||
apt upgrade -y && \ | ||
apt install -y --no-install-recommends \ | ||
vim \ | ||
curl \ | ||
sqlite \ | ||
libpq-dev \ | ||
libmysqlclient-dev \ | ||
libsass-dev | ||
ENV PATH $PATH:/root/.nimble/bin | ||
WORKDIR /root/project | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ lcov.info | |
# IDE | ||
.vscode/* | ||
|
||
config.nims | ||
.env | ||
*.out | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
import os | ||
putEnv("SECRET_KEY", "~>$)PCdkm7eFp(O57ULFY)21") # 24 chars | ||
putEnv("DB_SQLITE", $true) # "true" or "false" | ||
# putEnv("DB_POSTGRES", $true) # "true" or "false" | ||
# putEnv("DB_MYSQL", $true) # "true" or "false" | ||
# putEnv("DB_MARIADB", $true) # "true" or "false" | ||
putEnv("SESSION_TYPE", "file") # "file" or "redis" | ||
putEnv("LIBSASS", $true) # "true" or "false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.