-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b498021
Showing
7,413 changed files
with
311,216 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,15 @@ | ||
* | ||
!bash_completion_smith | ||
!docker | ||
!docs | ||
!smith-playground | ||
!LICENSE.txt | ||
!README.md | ||
!MANIFEST.in | ||
!LICENSE.txt | ||
!README.md | ||
!setup.py | ||
!pyproject.toml | ||
!src | ||
!.git | ||
docker/tests/* |
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,4 @@ | ||
# Ensure Dockerfile and shell script uses LF for Windows users. | ||
Dockerfile eol=lf | ||
*.sh eol=lf | ||
bash_completion* eol=lf |
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,22 @@ | ||
.lock* | ||
.conf* | ||
.waf* | ||
build | ||
*~ | ||
*.pyc | ||
c4che | ||
config.log | ||
dist | ||
*.egg-info | ||
.*.sw? | ||
**/results/* | ||
*.epub | ||
dev/ | ||
*.code-workspace | ||
.vscode/ | ||
docs/sphinx | ||
tc | ||
docker/tests | ||
src/smithlib/_version.py | ||
venv |
Empty file.
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,37 @@ | ||
You need to install Docker: https://docs.docker.com/get-docker/. | ||
|
||
Windows users should also install [Git4Windows](https://git-scm.com/download/win) and [WSL2](https://learn.microsoft.com/en-us/windows/wsl/install). | ||
|
||
The Docker file has the following terminal targets which can be selected with | ||
the `--target` option: | ||
`build-agent`: | ||
Installs packages and config necessary to run TeamCity build agent. | ||
`interactive`: (default) | ||
This will install a `builder` user who has pasword-less sudo, and the | ||
`less`, `bash_completion`, `vim` and `nano` packages. Suitable for development | ||
testing and as a clean room local build environment. | ||
|
||
Thus to build the interactive image (and tag it `smith:latest`) run: | ||
``` | ||
$> docker build . -t smith:latest | ||
``` | ||
Or equivalently: | ||
``` | ||
$> docker build --target=interactive . -t smith:latest | ||
``` | ||
The container exports a volume at `/smith`: | ||
|
||
``` | ||
$> docker run --rm -it -h smith -v $HOME/repos/wstechfonts:/smith smith:latest | ||
``` | ||
|
||
This will run the latest version of smith in your local image store and run | ||
it with the absolute path (or docker volume) `$WORKSPACE` mapped to `/smith` | ||
inside, and an interactive bash session (the `-it` options). The `--rm` makes | ||
the container ephemeral. | ||
|
||
Our TeamCity build agent is built like so: | ||
``` | ||
$> docker build --target=build-agent-teamcity . | ||
``` | ||
|
Oops, something went wrong.