-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockercontainer and fixed deps for testing #195
Merged
brianmhunt
merged 13 commits into
knockout:main
from
Auge19:dockercontainer_and_fixed_deps_for_testing
Jan 9, 2025
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
966b919
init
b0a2705
Create devcontainer.json
Auge19 b81a8c1
update lerna, esbuild
a93d451
updated dependencies (npm audit)
5964757
updated lerna
ab9464a
updated dependencies
a7327e0
add some docs with auge19 and test it under wsl2
phillipc ab16886
use newer base-image
phillipc daf9dc1
libscore and devDep links are dead
phillipc 1884900
fix major
phillipc 8b8ff6a
Makefile hook for docker-dev-container-build
phillipc e36d51b
markdown lint
f214ae8
fix timing problems for testing with election 33.2.1
phillipc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,5 @@ | ||
{ | ||
"name": "Technical Knockout", | ||
"image": "tko:latest", | ||
"workspaceFolder": "/usr/src/app" | ||
} |
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 @@ | ||
node_modules | ||
npm-debug.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Use an official Node.js image as the base image | ||
FROM node:22-bookworm | ||
|
||
# Install necessary dependencies for make and chromium | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
wget \ | ||
gnupg \ | ||
libx11-xcb1 \ | ||
libxcomposite1 \ | ||
libxcursor1 \ | ||
libxdamage1 \ | ||
libxi6 \ | ||
libxtst6 \ | ||
libnss3 \ | ||
libxrandr2 \ | ||
libasound2 \ | ||
libpangocairo-1.0-0 \ | ||
libatk-bridge2.0-0 \ | ||
libgtk-3-0 \ | ||
libgbm1 \ | ||
xdg-utils \ | ||
fonts-liberation \ | ||
chromium \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Set the working directory | ||
WORKDIR /usr/src/app | ||
|
||
# Copy package.json and package-lock.json (or yarn.lock) | ||
COPY package*.json ./ | ||
|
||
# Install dependencies using npm or yarn | ||
#RUN npm install --force | ||
#RUN yarn && yarn install | ||
|
||
ENV CHROME_BIN=/usr/bin/chromium | ||
ENV CHROME_PATH=/usr/bin/chromium | ||
|
||
# Copy the rest of the application source code | ||
COPY . . | ||
|
||
# Set the default command to build the project using make | ||
#CMD ["make"] | ||
|
||
CMD ["sh", "-c", "sleep infinity"] | ||
|
||
# Expose the build directory as a volume | ||
VOLUME ["/usr/src/app/builds/knockout/dist"] |
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,3 @@ | ||
{ | ||
"useWorkspaces": true, | ||
"version": "4.0.0-beta1.7", | ||
"lerna": "4.0.0" | ||
"version": "4.0.0-beta1.7" | ||
} |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be inclined to add a
docker-test-headless
target too that rebuilds and runs the tests in headless docker image