Skip to content

Commit 57ea406

Browse files
committed
Install version locked ffi gem
- Also fixes commercial index page pointing to wrong location for Online docs
1 parent 54d080c commit 57ea406

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.s2i/bin/assemble

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# The assemble script builds the application artifacts from source and
33
# places them into appropriate directories inside the image.
44

5+
# Required to install `ffi` separately due to an installation issue with ffi v-1.9.21
6+
echo "---> Installing ffi ..."
7+
gem install ffi --version 1.9.18
58
# `gem install` is required because `bundle install` does not properly place `asciibinder` into $PATH
69
echo "---> Installing AsciiBinder ..."
710
gem install ascii_binder
@@ -26,8 +29,9 @@ export LANG="en_US.UTF-8"
2629
echo "---> AsciiBinder packaging commercial content ..."
2730
# AsciiBinder uses git to some extent and requires `user.email` to be properly set
2831
git config user.email "[email protected]"
29-
# Properly package assets
32+
# Package assets for commercial site only, without Minishift content
3033
asciibinder package --site=commercial
34+
# Move commercial content to its own directory, including commercial specific redirects and 404 page
3135
mkdir commercial_package
3236
mv _package/commercial commercial_package
3337
git checkout master
@@ -52,7 +56,9 @@ else
5256
fi
5357

5458
echo "---> AsciiBinder packaging community content ..."
59+
# Package assets for community site only, with Minishift content
5560
asciibinder package --site=community
61+
# Move community content to its own directory, including community specific redirects and 404 page
5662
mkdir community_package
5763
mv _package/community community_package
5864
git checkout master

asciibinder-template.yml

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ objects:
5858
kind: "Service"
5959
name: "commercial-${NAME}"
6060
weight: 1
61+
port:
62+
targetPort: "https"
6163
tls:
6264
termination: "edge"
6365
insecureEdgeTerminationPolicy: "Redirect"
@@ -74,6 +76,8 @@ objects:
7476
kind: "Service"
7577
name: "community-${NAME}"
7678
weight: 1
79+
port:
80+
targetPort: "https"
7781
tls:
7882
termination: "edge"
7983
insecureEdgeTerminationPolicy: "Redirect"

contributing_to_docs/tools_and_setup.adoc

+2-4
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,10 @@ workstation to edit existing topics or create new topics.
154154
=== How to deploy to OpenShift
155155
You can deploy to OpenShift for development by running
156156

157-
[source, bash]
158157
---
159158
oc process -f asciibinder-template.yml -p NAME=docs \
160-
-p SOURCE_REPOSITORY_URL=(git remote get-url origin) \
161-
-p SOURCE_REPOSITORY_REF=(git rev-parse --abbrev-ref HEAD) \
159+
-p SOURCE_REPOSITORY_URL=$(git remote get-url origin) \
160+
-p SOURCE_REPOSITORY_REF=$(git rev-parse --abbrev-ref HEAD) \
162161
-p MEMORY_LIMIT=512Mi -p MEMORY_REQUEST=256Mi \
163162
| oc create -f -
164163
---
@@ -175,7 +174,6 @@ and add it to the stg1 build, `oc set build-secret --source bc/stg1-docs <secret
175174

176175
You can delete all created objects by running
177176

178-
[source, bash]
179177
---
180178
oc delete all -l app=docs
181179
---

index-commercial.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ <h1>OpenShift Documentation</h1>
403403
<h2>OpenShift Online</h2>
404404
<div class="list-group">
405405
<p class="list-group-item-text">Red Hat's public cloud application deployment and hosting platform.</p>
406-
<p><a role="button" class="btn btn-primary" href="dedicated/"><i class="fa fa-arrow-circle-o-right"></i> Online</a></p>
406+
<p><a role="button" class="btn btn-primary" href="online/"><i class="fa fa-arrow-circle-o-right"></i> Online</a></p>
407407
</div>
408408
</div>
409409
<div class="col-sm-3 text-center">

0 commit comments

Comments
 (0)