This repository has been archived by the owner on Jul 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
botway(core): finish from implementing
coder
to botway
- Loading branch information
Showing
13 changed files
with
794 additions
and
183 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM botwayorg/coder:latest | ||
|
||
USER coder | ||
|
||
ARG PASSWORD GIT_REPO GITHUB_TOKEN | ||
|
||
RUN gh repo clone $GIT_REPO main | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT code-server --bind-addr 0.0.0.0:8080 main |
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,45 @@ | ||
FROM codercom/code-server:latest | ||
|
||
USER coder | ||
|
||
ENV SHELL=/bin/bash | ||
ENV PORT=8080 | ||
|
||
COPY settings.json .local/share/code-server/User/settings.json | ||
|
||
RUN sudo chown -R coder:coder /home/coder/.local | ||
|
||
### Required Packages ### | ||
RUN sudo apt-get update -y && sudo apt-get upgrade -y \ | ||
&& sudo apt-get install -y sqlite3 git-core curl gnupg build-essential wget openssl ruby ruby-dev libopus-dev opus-tools binutils libssl-dev zlib1g-dev libboost-system-dev libcurl4-openssl-dev libffi-dev python-dev ffmpeg build-essential autoconf automake libtool m4 youtube-dl | ||
|
||
### C ### | ||
RUN curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/llvm-archive-keyring.gpg \ | ||
&& echo "deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/jammy/ \ | ||
llvm-toolchain-jammy-15 main" | sudo tee /etc/apt/sources.list.d/llvm.list > /dev/null \ | ||
&& sudo apt-get update -y \ | ||
&& sudo apt-get install -y clang clangd clang-format clang-tidy gdb lld | ||
|
||
### Nodejs ### | ||
RUN curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash - && \ | ||
sudo apt-get install -y nodejs | ||
|
||
RUN sudo npm i -g npm@latest pnpm@latest yarn@latest @botway/strg@latest | ||
|
||
### Homebrew ### | ||
RUN mkdir ~/.cache && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
|
||
ENV PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH | ||
ENV MANPATH="$MANPATH:/home/linuxbrew/.linuxbrew/share/man" | ||
ENV INFOPATH="$INFOPATH:/home/linuxbrew/.linuxbrew/share/info" | ||
|
||
RUN echo 'export PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH' >> ~/.profile | ||
|
||
### CMake, GitHub CLI, Deno, Go, Botway CLI, Rust, .NET, MongoDB, MySQL, Redis and Railway CLI ### | ||
RUN brew update && brew install cmake gh deno go abdfnx/tap/botway rust rustup-init dotnet mongodb/brew/mongodb-community mysql redis railwayapp/tap/rlwy | ||
|
||
### PostgreSQL ### | ||
RUN sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' \ | ||
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - \ | ||
&& sudo apt-get update -y \ | ||
&& sudo apt-get install -y postgresql |
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,6 @@ | ||
{ | ||
"git.postCommitCommand": "sync", | ||
"git.enableSmartCommit": true, | ||
"git.confirmSync": false, | ||
"git.autofetch": true | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { createBrowserSupabaseClient } from "@supabase/auth-helpers-nextjs"; | ||
import { createPagesBrowserClient } from "@supabase/auth-helpers-nextjs"; | ||
|
||
const supabase = createBrowserSupabaseClient(); | ||
const supabase = createPagesBrowserClient(); | ||
|
||
export default supabase; |
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,8 +1,8 @@ | ||
import { createServerComponentSupabaseClient } from "@supabase/auth-helpers-nextjs"; | ||
import { createServerComponentClient } from "@supabase/auth-helpers-nextjs"; | ||
import { cookies, headers } from "next/headers"; | ||
|
||
export default () => | ||
createServerComponentSupabaseClient({ | ||
createServerComponentClient({ | ||
headers, | ||
cookies, | ||
}); |
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 |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"prettier": "^2.8.8", | ||
"turbo": "^1.9.8" | ||
"turbo": "^1.9.9" | ||
} | ||
} |
Oops, something went wrong.