Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/setuptools-70.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison authored Aug 20, 2024
2 parents 9f685bf + 93eef5f commit 7538970
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
- 'docker/Dockerfile.base-dev.dockerignore'
- 'pyproject.toml'
- 'poetry.lock'
- 'package.json'
- 'package-lock.json'
schedule:
- cron: '30 5 */14 * *'

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ jobs:
COVERALLS_GIT_BRANCH: ${{ github.ref }}
steps:
- uses: actions/checkout@v4
- name: Fetch latest docker-compose
run: sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- name: Build containers
run: docker-compose -f ./docker-compose.yml -f ./docker-compose.ci.yml build --parallel
run: docker compose -f ./docker-compose.yml -f ./docker-compose.ci.yml build --parallel
- name: Test
run: docker-compose -f ./docker-compose.yml -f ./docker-compose.ci.yml run -T app poetry run make test
run: docker compose -f ./docker-compose.yml -f ./docker-compose.ci.yml run -T app poetry run make test
build:
runs-on: ubuntu-latest
needs: test
Expand All @@ -39,9 +37,11 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build app image
run: docker build -t ghcr.io/emfcamp/website:latest -f ./Dockerfile.prod .
- name: Publish app image
run: docker push ghcr.io/emfcamp/website:latest
- name: Build static image
# This builds from ghcr.io/emfcamp/website:latest, which we haven't pushed yet but should be correct locally
run: docker build -t ghcr.io/emfcamp/website-static:latest -f ./docker/static/Dockerfile ./docker/static/
- name: Publish static image
# Push static first so it hopefully gets pulled first
run: docker push ghcr.io/emfcamp/website-static:latest
- name: Publish app image
run: docker push ghcr.io/emfcamp/website:latest
6 changes: 2 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch latest docker-compose
run: sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- name: Build containers
run: docker-compose -f ./docker-compose.yml -f ./docker-compose.ci.yml build --parallel
run: docker compose -f ./docker-compose.yml -f ./docker-compose.ci.yml build --parallel
- name: Test
run: docker-compose -f ./docker-compose.yml -f ./docker-compose.ci.yml run -T app poetry run make test
run: docker compose -f ./docker-compose.yml -f ./docker-compose.ci.yml run -T app poetry run make test
6 changes: 3 additions & 3 deletions apps/volunteer/data/roles/kitchen_assistant.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Kitchen Assistant
description: Help our excellent catering team provide food for all the volunteers.
description: Help provide food for all the volunteers.
full_description_md: |
Help our excellent catering team provide food for all the volunteers.
Help in our excellent volunteer kitchen to provide food for all the volunteers.
Mostly you'll be chopping vegetables, washing up, and serving food, the catering team will handle the actual cooking.
Mostly you'll be chopping vegetables, washing up, and serving food.
Bonus: Kitchen roles get an additional meal for the shift they work!
2 changes: 1 addition & 1 deletion docker-compose.kelvin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
networks:
- emfweb

postgres_exporter:
postgres-exporter:
restart: unless-stopped
image: 'wrouesnel/postgres_exporter:v0.8.0'
environment:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
networks:
- emfweb

postgres_exporter:
postgres-exporter:
restart: unless-stopped
image: 'wrouesnel/postgres_exporter:v0.8.0'
environment:
Expand All @@ -49,7 +49,7 @@ services:
- emfweb
command: memcached -m 64

memcached_exporter:
memcached-exporter:
restart: unless-stopped
image: 'prom/memcached-exporter:v0.9.0'
depends_on:
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ services:
- "2342:2342"
environment:
SETTINGS_FILE: ./config/development.cfg
FLASK_APP: dev_server.py
FLASK_ENV: development
COLORIZE_LOGS: always
PYTHONUNBUFFERED: 1
IRCCAT: fakeirccat:12345
Expand Down
22 changes: 11 additions & 11 deletions docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ COPY pyproject.toml poetry.lock /app/
# doesn't confuse poetry.
ENV POETRY_VIRTUALENVS_IN_PROJECT=false

# All the X11 packages are required for chromium/playwright which we use for
# generating PDFs.
#
# It would be nice to be able to build an image without build tools and dev
# packages, however this complicates upgrading packages which require compilation.
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libxml2-dev libxslt1-dev libffi-dev git glpk-utils \
postgresql-client make build-essential libpq-dev \
libx11-xcb1 libxcomposite1 libxss1 \
libxcursor1 libxdamage1 libxi6 libxtst6 libnss3 libcups2 \
libxrandr2 libasound2 libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libzbar0 \
coinor-cbc curl && \
pip3 install poetry==1.7.1 && \
poetry install && \
poetry run playwright install-deps && \
poetry run playwright install chromium && \
libzbar0 coinor-cbc curl && \
rm -rf /var/lib/apt/lists/*

RUN pip3 install poetry==1.7.1 && \
poetry install

RUN poetry run playwright install-deps && \
rm -rf /var/lib/apt/lists/*

RUN poetry run playwright install chromium && \
rm -rf /var/lib/apt/lists/*

5 changes: 4 additions & 1 deletion exports/2022/public/schedule.json
Original file line number Diff line number Diff line change
Expand Up @@ -5543,7 +5543,10 @@
"source": "database",
"link": "https://www.emfcamp.org/schedule/2022/353-the-atomic-gardener",
"start_time": "15:00",
"end_time": "15:30"
"end_time": "15:30",
"video": {
"youtube": "https://www.youtube.com/watch?v=-ouMGoQ4HYU"
}
},
{
"id": 354,
Expand Down
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ function css(cb) {

function icons(cb) {
pump([
gulp.src('./images/**/*'),
gulp.src('./images/**/*', { encoding: false }),
gulp.dest('static/images'),
], cb);
}

function images(cb) {
pump([
gulp.src('./node_modules/@primer/octicons/build/svg/**/*.svg'),
gulp.src('./node_modules/@primer/octicons/build/svg/**/*.svg', { encoding: false }),
gulp.dest('static/icons'),
], cb);
}
Expand Down
13 changes: 12 additions & 1 deletion templates/schedule/historic/item.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,19 @@ <h3>Video</h3>
<button class="youtube-wait-for-click-button">Continue</button>
</div>
</div>
<p>View this video <a href="{{ event.video.youtube }}">on YouTube</a>.</p>
{% endif %}
<strong>Video Hosts:</strong>
<ul>
{% if event.video.ccc %}
<li>View this video <a href="{{ event.video.ccc }}">on media.ccc.de</a>.</li>
{% endif %}
{% if event.video.archiveorg %}
<li>View this video <a href="{{ event.video.archiveorg }}">on the Internet Archive</a>.</li>
{% endif %}
{% if event.video.youtube %}
<li>View this video <a href="{{ event.video.youtube }}">on YouTube</a>.</li>
{% endif %}
</ul>
</div>
{% endif %}
{% endblock %}
10 changes: 9 additions & 1 deletion templates/schedule/item.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,16 @@ <h4>Video</h4>
<iframe src="{{proposal.youtube_url|replace('youtube.com/watch?v=', 'youtube.com/embed/')}}"
width="100%" height="500px" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<p>View this video <a href="{{ proposal.youtube_url }}">on YouTube</a>.</p>
{% endif %}
<strong>Video Hosts:</strong>
<ul>
{% if proposal.c3voc_url %}
<li>View this video <a href="{{ proposal.c3voc_url }}">on media.ccc.de</a>.</li>
{% endif %}
{% if proposal.youtube_url %}
<li>View this video <a href="{{ proposal.youtube_url }}">on YouTube</a>.</li>
{% endif %}
</ul>
</div>
<p>&nbsp;</p>
{% endif %}
Expand Down

0 comments on commit 7538970

Please sign in to comment.