Skip to content

Commit a4fa3ac

Browse files
authored
Merge pull request #212 from orionrobots/fix-images
Improve shell - swap out non-working tab gallery
2 parents 577c828 + aafbac6 commit a4fa3ac

File tree

5 files changed

+61
-11
lines changed

5 files changed

+61
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ docker compose up --build --remove-orphans
1717

1818
Get a bash prompt in the serve container:
1919
```bash
20-
docker compose run --interactive serve bash
20+
docker compose run shell
2121
```
2222

2323
**Note:** `node_modules` are managed inside the container. You do not need to run `npm install` on your host.

content/2004/11/05/simple-parallel-port-led.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ tags:
88
- parallel port
99
title: Simple Parallel Port LED
1010
thumbnail: content/2004/11/05/cable-with-led.jpg
11-
led_gallery:
12-
- src: content/2004/11/05/led-close-up-lit.jpg
13-
alt: LED Close Up Lit
14-
- src: content/2004/11/05/led-lit-in-dark.jpg
15-
alt : LED Lit In Dark
16-
- src: content/2004/11/05/led-close-up-unlit.jpg
17-
alt: LED Close Up Unlit
1811
---
1912
## Intro
2013

@@ -138,4 +131,6 @@ This will turn on, then off for a second. Put it into a while loop to blink unti
138131

139132
You need to press Ctrl-C to stop this blinking.
140133

141-
{% tab_gallery "led_gallery", led_gallery %}
134+
![LED Close Up Lit](led-close-up-lit.jpg "LED Close Up Lit")
135+
![LED Lit In Dark](led-lit-in-dark.jpg "LED Lit In Dark")
136+
![LED Close Up Unlit](led-close-up-unlit.jpg "LED Close Up Unlit")

content/2023/12/11/change-of-viewpoint-on-wiring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ I then had a wiring issue - and the WAGO's helped. First, the test points meant
8181

8282
I tried some fairly aggressive shaking of the wires, and saw no fault. I don't recommend any connection is under stress, but I tried that and it looked good.
8383

84-
They still take a bunch of space, but making blocks of them with bluetac worked for me. It may be tidier if the pigtail connectors were ribbons, as they come as a set of 6 individual wires (or 4 depending on the connector size). However, once I am happy with the connections, I can always go around it with [Spiral Wire Wrap](2021/03/07/wire-wrap).
84+
They still take a bunch of space, but making blocks of them with bluetac worked for me. It may be tidier if the pigtail connectors were ribbons, as they come as a set of 6 individual wires (or 4 depending on the connector size). However, once I am happy with the connections, I can always go around it with [Spiral Wire Wrap](/2021/03/07/wire-wrap.html).
8585

8686
## Conclusion
8787

docker-compose.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,43 @@ services:
5757
command: ["rm", "-rf", "_site"]
5858
profiles:
5959
- manual
60+
61+
shell:
62+
build:
63+
context: .
64+
dockerfile: serve.Dockerfile
65+
target: debug
66+
command: ["bash"]
67+
volumes:
68+
- .:/app/src
69+
- /app/src/node_modules
70+
ports:
71+
- 8081:8081
72+
stdin_open: true
73+
tty: true
74+
profiles:
75+
- manual
76+
77+
# Run after build - although in the CI this is run from a tarballed build currently
78+
http_serve:
79+
build:
80+
context: .
81+
dockerfile: serve.Dockerfile
82+
target: httpd_serve
83+
volumes:
84+
- ./_site:/usr/local/apache2/htdocs/
85+
- ./_drafts/staging/http2.conf:/etc/nginx/conf.d/http2.conf
86+
- ./htaccess:/usr/local/apache2/htdocs/.htaccess
87+
ports:
88+
- 8082:80
89+
profiles:
90+
- manual
91+
92+
broken_links:
93+
build:
94+
context: .
95+
dockerfile: serve.Dockerfile
96+
target: broken_link_checker
97+
command: ["http://http_serve"]
98+
profiles:
99+
- manual

serve.Dockerfile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:24-bullseye
1+
FROM node:24-bullseye AS base
22

33
# Create app directory
44
WORKDIR /app/src
@@ -10,3 +10,18 @@ RUN npm install
1010
# Copy rest of the app source
1111
COPY . /app/src
1212

13+
FROM base AS debug
14+
15+
RUN apt-get update && apt-get install -y \
16+
less \
17+
iputils-ping \
18+
dnsutils
19+
20+
FROM dcycle/broken-link-checker:3 AS broken_link_checker
21+
22+
FROM httpd:2.4.63 AS httpd_serve
23+
24+
# COPY _site /var/www/html/
25+
COPY _drafts/staging/http2.conf /etc/httpd/conf/httpd.conf
26+
27+
FROM base

0 commit comments

Comments
 (0)