middleman-hashicorp 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -1
- data/Makefile +7 -7
- data/docker/Dockerfile +16 -4
- data/docker/entrypoint.sh +17 -0
- data/lib/middleman-hashicorp/extension.rb +0 -10
- data/lib/middleman-hashicorp/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c359c01d2d1627f1f574090f58112bbc3108ef3
|
4
|
+
data.tar.gz: 10929ce28a6d3f649f93be98546fd6e2edaae71c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 440b68944e78da9548cdbb049735e889962846ff74dcc73cc4755312c3ffcb81119baf728d3205d981c8e6b502fa8c6a329088aec4888a8e5bafaaf0a6864bb8
|
7
|
+
data.tar.gz: a5bc45777e184efd9fa1115a43cff02d47858e444b57a99c0c5b3373ae62f8eecc41e12ff89a0742e3f7f51b8061915de2c7bb5f66b092d67f1f19c95fff1cfb
|
data/.travis.yml
CHANGED
data/Makefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
VERSION?=$(shell awk -F\" '/VERSION/ { print $$2; exit }' lib/middleman-hashicorp/version.rb)
|
2
2
|
|
3
|
-
docker:
|
3
|
+
docker:
|
4
4
|
@echo "==> Building container v${VERSION}..."
|
5
5
|
@docker build \
|
6
6
|
--file "docker/Dockerfile" \
|
@@ -10,16 +10,16 @@ docker: build
|
|
10
10
|
--rm \
|
11
11
|
.
|
12
12
|
|
13
|
-
|
14
|
-
@echo "==>
|
15
|
-
@
|
16
|
-
@
|
13
|
+
docker-push:
|
14
|
+
@echo "==> Pushing to Docker registry..."
|
15
|
+
@docker push "hashicorp/middleman-hashicorp:latest"
|
16
|
+
@docker push "hashicorp/middleman-hashicorp:${VERSION}"
|
17
17
|
|
18
18
|
gem:
|
19
19
|
@echo "==> Building and releasing gem v${VERSION}..."
|
20
20
|
@rm -rf pkg/
|
21
21
|
@bundle exec rake release
|
22
22
|
|
23
|
-
release: gem docker
|
23
|
+
release: gem docker docker-push
|
24
24
|
|
25
|
-
.PHONY: docker gem release
|
25
|
+
.PHONY: docker docker-push gem release
|
data/docker/Dockerfile
CHANGED
@@ -14,15 +14,27 @@ RUN tar -xzvf /s3cmd-1.6.1.tar.gz && \
|
|
14
14
|
# Add the context
|
15
15
|
ADD pkg/ /pkg
|
16
16
|
|
17
|
+
# Upgrade bundler
|
18
|
+
RUN gem update --no-document
|
19
|
+
|
17
20
|
# Install the bundle
|
18
|
-
RUN gem install /pkg/middleman-hashicorp-*.gem \
|
21
|
+
RUN gem install /pkg/middleman-hashicorp-*.gem --no-document \
|
19
22
|
&& rm -rf /pkg
|
20
23
|
|
24
|
+
RUN gem list | grep mini
|
25
|
+
|
26
|
+
# For some reason, this isn't installed by default
|
27
|
+
# RUN gem install minitest --version "~> 5.9"
|
28
|
+
|
21
29
|
# Mounts
|
22
30
|
WORKDIR /website
|
23
31
|
|
24
|
-
|
32
|
+
# Expose ports
|
33
|
+
EXPOSE 4567
|
34
|
+
EXPOSE 35729
|
25
35
|
|
26
|
-
|
36
|
+
ADD docker/entrypoint.sh /entrypoint.sh
|
37
|
+
|
38
|
+
ENTRYPOINT ["/entrypoint.sh"]
|
27
39
|
|
28
|
-
|
40
|
+
CMD ["server"]
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
set -e
|
3
|
+
|
4
|
+
# Install any additional dependencies our bundle needs. Most of the core
|
5
|
+
# dependencies are already included in the container, so this just any
|
6
|
+
# additional things that were not originally present in the build.
|
7
|
+
if ! bundle check &>/dev/null; then
|
8
|
+
echo "==> Warning! You have missing dependencies. This is probably okay but"
|
9
|
+
echo " it means your build is going to take a bit longer each time. You"
|
10
|
+
echo " may want to consider adding your requirements to the container for"
|
11
|
+
echo " a faster build."
|
12
|
+
echo ""
|
13
|
+
echo "==> Installing missing dependencies. This may take some time..."
|
14
|
+
bundle install
|
15
|
+
fi
|
16
|
+
|
17
|
+
exec "$@"
|
@@ -81,16 +81,6 @@ class Middleman::HashiCorpExtension < ::Middleman::Extension
|
|
81
81
|
activate :minify_javascript
|
82
82
|
end
|
83
83
|
|
84
|
-
# Minify HTML
|
85
|
-
require "middleman-minify-html"
|
86
|
-
activate :minify_html do |html|
|
87
|
-
html.remove_quotes = false
|
88
|
-
html.remove_script_attributes = false
|
89
|
-
html.remove_multi_spaces = false
|
90
|
-
html.remove_http_protocol = false
|
91
|
-
html.remove_https_protocol = false
|
92
|
-
end
|
93
|
-
|
94
84
|
# Enable cache buster
|
95
85
|
activate :asset_hash
|
96
86
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-hashicorp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Vargo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman
|
@@ -175,6 +175,7 @@ files:
|
|
175
175
|
- assets/javascripts/ie-compat/respond.js
|
176
176
|
- assets/javascripts/jquery.js
|
177
177
|
- docker/Dockerfile
|
178
|
+
- docker/entrypoint.sh
|
178
179
|
- lib/middleman-hashicorp.rb
|
179
180
|
- lib/middleman-hashicorp/bintray.rb
|
180
181
|
- lib/middleman-hashicorp/extension.rb
|