-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quick rundown: - Everything is organized into directories - Docker actually works - Schedule, and most other .MDs moved to the wiki - Tests to see if the app actually works (devs) - I use NeoVim and Arch BTW - Branch sqlite3 - I actually commit from my account instead of a ghp key
- Loading branch information
1 parent
8cfade5
commit e0b129f
Showing
22 changed files
with
2,453 additions
and
85 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
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,23 +1,25 @@ | ||
--- | ||
name: I want my distro on the list | ||
name: I want my package manager on the list | ||
about: Most of the package managers on the list are there, but if I miss something | ||
you have to tell me | ||
title: "[distro] Arch" | ||
title: "[distro] e.g. Arch" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**distribution** | ||
Arch | ||
(Anything but nixos) e.g. Arch Linux | ||
|
||
**derivatives** | ||
Manjaro, Garuda, Endevour OS | ||
e.g. Manjaro, Garuda, Endevour OS... | ||
|
||
**package manager along with the install command to golang, docker sqlite3** | ||
pacman -Sy go docker sqlite | ||
**package manager along with the install command to golang, docker and sqlite3** | ||
e.g. pacman -Sy go docker sqlite3 | ||
|
||
**additional context** | ||
e.g. The package manager I have described can't install multiple packages at once, meaning it has to be multiple lines... | ||
|
||
**I'm sure that** | ||
- [ ] It's obviously not on the list | ||
- [ ] The distro is not [scheduled](https://github.com/RewardedIvan/3DPS/blob/master/schedule.md) or a similar issue exists that I have not seen, please like that issue so I can see it | ||
- [ ] It's obviously anywhere (in the wiki) | ||
If your not sure, your issue **will** be closed. |
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,3 @@ | ||
./src/levels.db | ||
./src/src | ||
./test/test |
This file was deleted.
Oops, something went wrong.
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 golang:alpine | ||
RUN apk add --update gcc musl-dev curl | ||
RUN mkdir /src | ||
RUN mkdir /3DPS | ||
|
||
COPY docker/setup.sh /src/setup.sh | ||
RUN chmod +x /src/setup.sh | ||
|
||
COPY src/* /src/ | ||
|
||
RUN [ "sh", "/src/setup.sh" ] | ||
|
||
EXPOSE 9991 | ||
HEALTHCHECK CMD if [[ "$(curl localhost:9991 -s | md5sum)" == "cfdf6a1ec3ca70cc1d00b7820c4ba64f -" ]]; then; exit 0; else; exit 1; fi | ||
ENTRYPOINT ["/3DPS/server", "-db", "/db/levels.db"] |
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,18 @@ | ||
#!/bin/sh | ||
cd /src | ||
|
||
# Check the wiki for more info | ||
#openssl req -x509 -nodes -newkey rsa:2048 -keyout TLS.key -out TLS.crt -days 69420 -subj "/C=EA/ST=Planet/L=Earth/O=Global Security/OU=IT Department/CN=3DPS" | ||
|
||
go mod tidy | ||
go build | ||
mv 3DPS /3DPS/server | ||
cd / | ||
rm -rf /src | ||
|
||
# I was originally going to use postgres, but no one is going to get that many users | ||
# If the sqlite experience is bad enough, I will try to use another database, ofc in another branch | ||
|
||
#wget https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh | ||
#chmod +x wait-for-it.sh | ||
#./wait-for-it.sh -h postgres -p 5432 -t 69 -- ...... |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
module github.com/RewardedIvan/3DPS | ||
|
||
go 1.19 | ||
|
||
require github.com/mattn/go-sqlite3 v1.14.16 |
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,2 @@ | ||
github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= | ||
github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= |
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,3 @@ | ||
module github.com/RewardedIvan/3DPS/test | ||
|
||
go 1.19 |
Oops, something went wrong.