-
-
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.
Update import paths and add pagination to InMemoryRepository (#70)
- Loading branch information
Showing
11 changed files
with
118 additions
and
31 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,25 @@ | ||
FROM node:18.12 | ||
|
||
ARG USER_NAME=user | ||
ARG USER_UID=1000 | ||
ARG USER_GID=$USER_UID | ||
ARG GITHUB_TOKEN | ||
|
||
# Install necessary apps | ||
RUN apt-get update \ | ||
&& apt-get install -y git fish sudo | ||
|
||
# Create the user | ||
RUN groupadd --gid ${USER_GID} ${USER_NAME} \ | ||
&& useradd --uid ${USER_UID} --gid ${USER_GID} -m ${USER_NAME} \ | ||
&& echo $USER_NAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/${USER_NAME} \ | ||
&& chmod 0440 /etc/sudoers.d/${USER_NAME} | ||
USER ${USER_NAME} | ||
|
||
# Copy files | ||
WORKDIR /workspaces | ||
COPY --chown=${USER_UID}:${USER_GID} . . | ||
RUN npm install | ||
|
||
# Infinite development loop | ||
CMD ["/bin/bash", "-c", "while true; do sleep 1000; done"] |
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,15 +1,25 @@ | ||
{ | ||
"extensions": [ | ||
"GitHub.vscode-pull-request-github", | ||
"stackbreak.comment-divider", | ||
"dbaeumer.vscode-eslint", | ||
"GitHub.copilot", | ||
"Orta.vscode-jest", | ||
"yzhang.markdown-all-in-one", | ||
"bierner.markdown-mermaid", | ||
"eg2.vscode-npm-script", | ||
"howardzuo.vscode-npm-dependency", | ||
"craig-simko.open-stryker-report", | ||
"jasonnutter.search-node-modules" | ||
] | ||
"name": "Framework", | ||
"dockerComposeFile": [ | ||
"docker-compose.yml" | ||
], | ||
"service": "framework", | ||
"workspaceFolder": "/workspaces", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"GitHub.vscode-pull-request-github", | ||
"stackbreak.comment-divider", | ||
"dbaeumer.vscode-eslint", | ||
"GitHub.copilot", | ||
"Orta.vscode-jest", | ||
"yzhang.markdown-all-in-one", | ||
"bierner.markdown-mermaid", | ||
"eg2.vscode-npm-script", | ||
"howardzuo.vscode-npm-dependency", | ||
"craig-simko.open-stryker-report", | ||
"jasonnutter.search-node-modules" | ||
] | ||
} | ||
} | ||
} |
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,14 @@ | ||
name: framework | ||
|
||
services: | ||
framework: | ||
build: | ||
context: .. | ||
dockerfile: .devcontainer/Dockerfile | ||
args: | ||
- USER_NAME=${DEVCONTAINER_USER_NAME} | ||
- USER_UID=${DEVCONTAINER_USER_ID:-1000} | ||
- USER_GID=${DEVCONTAINER_USER_GID:-1000} | ||
- GITHUB_TOKEN=${GITHUB_PAT_TOKEN} | ||
volumes: | ||
- ..:/workspaces |
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
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