Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev-tools/docker/docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ruby:2.6.8
FROM --platform=linux/amd64 ruby:2.6.8

LABEL Vendor="Apache Geode"
LABEL version=unstable
Expand Down
4 changes: 2 additions & 2 deletions dev-tools/docker/docs/preview-user-guide.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ trap cleanup EXIT
# geode-book folder to the image context
cp ../../../geode-book/Gemfile* .

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

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