-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from penumbra-zone/project-instantiation
Project instantiation
- Loading branch information
Showing
23 changed files
with
5,669 additions
and
13 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,30 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local |
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 |
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,41 @@ | ||
FROM docker.io/debian:bookworm-slim | ||
LABEL maintainer="team@penumbralabs.xyz" | ||
|
||
# Initial packages for dummy container | ||
RUN apt-get update && apt-get install -y \ | ||
python3 \ | ||
curl \ | ||
jq | ||
# Install curl and gnupg for Node.js installation | ||
RUN apt-get update && apt-get install -y curl gnupg | ||
|
||
# Copy only the .nvmrc file to use the specified Node.js version | ||
COPY .nvmrc . | ||
|
||
# Use the version specified in .nvmrc to install Node.js | ||
RUN curl -sL https://deb.nodesource.com/setup_$(cat .nvmrc | xargs).x | bash - && \ | ||
apt-get install -y nodejs | ||
|
||
# Install Yarn | ||
RUN npm install -g yarn | ||
|
||
# Set the project directory | ||
WORKDIR /home/penumbra/dex-explorer | ||
|
||
# Copy the rest of the project files | ||
COPY . . | ||
|
||
# Configure registry | ||
RUN npm config set @buf:registry https://buf.build/gen/npm/v1/ | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
# Normal user settings | ||
ARG USERNAME=penumbra | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
RUN groupadd --gid ${GID} ${USERNAME} \ | ||
&& useradd -m -d /home/${USERNAME} -g ${GID} -u ${UID} ${USERNAME} | ||
RUN groupadd --gid ${GID} ${USERNAME} && \ | ||
useradd -m -d /home/${USERNAME} -g ${GID} -u ${UID} ${USERNAME} && \ | ||
chown -R ${USERNAME}:${USERNAME} /home/${USERNAME} | ||
|
||
|
||
# Create an example docroot, so we can verify deployment is working. | ||
RUN mkdir -p /home/${USERNAME}/docroot && bash -c "echo 'Hello, world!' > /home/${USERNAME}/docroot/index.html" | ||
WORKDIR /home/${USERNAME}/docroot | ||
USER ${USERNAME} | ||
EXPOSE 8000 | ||
CMD [ "python3", "-m", "http.server" ] | ||
EXPOSE 3000 | ||
|
||
# Start the app | ||
CMD ["yarn", "dev"] |
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 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
Oops, something went wrong.