Skip to content

Commit 52fe473

Browse files
committed
GEODE-10513: Fix ARM64 documentation preview with platform-specific Docker build
1 parent 80cf202 commit 52fe473

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

dev-tools/docker/docs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
FROM ruby:2.6.8
17+
FROM --platform=linux/amd64 ruby:2.6.8
1818

1919
LABEL Vendor="Apache Geode"
2020
LABEL version=unstable

dev-tools/docker/docs/preview-user-guide.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ trap cleanup EXIT
2626
# geode-book folder to the image context
2727
cp ../../../geode-book/Gemfile* .
2828

29-
docker build -t geodedocs/temp:1.0 .
29+
docker build --platform linux/amd64 -t geodedocs/temp:1.0 .
3030

3131
# "geode-book/final_app" and "geode-book/output" are created inside the container,
3232
# so it is necessary to use the current user to avoid these folders owned by
@@ -35,7 +35,7 @@ GEODE_BOOK="$(pwd)/../../../geode-book"
3535
GEODE_DOCS="$(pwd)/../../../geode-docs"
3636
MY_UID=$(id -u)
3737
MY_GID=$(id -g)
38-
docker run -it -p 9292:9292 --user $MY_UID:$MY_GID \
38+
docker run -it --platform linux/amd64 -p 9292:9292 --user $MY_UID:$MY_GID \
3939
--workdir="/home/$USER" \
4040
--volume="/etc/group:/etc/group:ro" \
4141
--volume="/etc/passwd:/etc/passwd:ro" \

0 commit comments

Comments
 (0)