Skip to content

Commit a9fab67

Browse files
authored
add a static container for handling local frontend dev (#2619)
* add a static container for handling local frontend dev * resulting css files
1 parent 89ae28c commit a9fab67

File tree

8 files changed

+679
-728
lines changed

8 files changed

+679
-728
lines changed

Dockerfile.static

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM ruby:2.7.8-bullseye AS static
2+
3+
RUN mkdir /code
4+
WORKDIR /code
5+
6+
COPY Gemfile Gemfile.lock /code/
7+
8+
RUN bundle install
9+
10+
COPY . /code

Gemfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
source "https://rubygems.org"
22

33
group :media do
4-
gem "compass", "~>0.12.2"
5-
gem "sass", "~>3.2.5"
6-
gem "susy", "~>1.0.5"
4+
gem "compass", "~>0.12.7"
5+
gem "sass", "~>3.2.19"
6+
gem "susy", "~>1.0.9"
77
end
88

99
group :development do

Gemfile.lock

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
chunky_png (1.2.7)
5-
compass (0.12.2)
4+
chunky_png (1.4.0)
5+
compass (0.12.7)
66
chunky_png (~> 1.2)
77
fssm (>= 0.2.7)
8-
sass (~> 3.1)
8+
sass (~> 3.2.19)
99
foreman (0.61.0)
1010
thor (>= 0.13.6)
1111
fssm (0.2.10)
12-
sass (3.2.6)
13-
susy (1.0.5)
12+
sass (3.2.19)
13+
susy (1.0.9)
1414
compass (>= 0.12.2)
1515
sass (>= 3.2.0)
1616
thor (0.17.0)
@@ -19,7 +19,10 @@ PLATFORMS
1919
ruby
2020

2121
DEPENDENCIES
22-
compass (~> 0.12.2)
22+
compass (~> 0.12.7)
2323
foreman (~> 0.61.0)
24-
sass (~> 3.2.5)
25-
susy (~> 1.0.5)
24+
sass (~> 3.2.19)
25+
susy (~> 1.0.9)
26+
27+
BUNDLED WITH
28+
2.1.4

bin/static

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
cd static
3+
bundle exec sass --compass --scss -I $(dirname $(dirname $(gem which susy))) --trace --watch sass:sass

docker-compose.yml

+7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ services:
2020
test: ["CMD", "redis-cli","ping"]
2121
interval: 1s
2222

23+
static:
24+
command: bin/static
25+
build:
26+
dockerfile: Dockerfile.static
27+
volumes:
28+
- .:/code
29+
2330
web:
2431
build: .
2532
image: pythondotorg:docker-compose

static/sass/mq.css

+170-192
Large diffs are not rendered by default.

static/sass/no-mq.css

+147-176
Large diffs are not rendered by default.

static/sass/style.css

+328-349
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)