Skip to content

Commit

Permalink
deploy: cc93948
Browse files Browse the repository at this point in the history
  • Loading branch information
n7s committed Aug 12, 2024
0 parents commit b498021
Show file tree
Hide file tree
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.
15 changes: 15 additions & 0 deletions .dockerignore
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/*
4 changes: 4 additions & 0 deletions .gitattributes
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
22 changes: 22 additions & 0 deletions .gitignore
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/*
*.pdf
*.epub
dev/
*.code-workspace
.vscode/
docs/sphinx
tc
docker/tests
src/smithlib/_version.py
venv
Empty file added .nojekyll
Empty file.
37 changes: 37 additions & 0 deletions Docker-steps.md
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 .
```

Loading

0 comments on commit b498021

Please sign in to comment.