Skip to content

Commit

Permalink
Land #19502, Update docker Ruby version
Browse files Browse the repository at this point in the history
  • Loading branch information
cgranleese-r7 authored Sep 26, 2024
2 parents 97038a7 + 566a7f1 commit b7a71b3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ jobs:

- name: docker-compose build
run: |
curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` > docker-compose
chmod +x docker-compose
sudo mv docker-compose /usr/bin
/usr/bin/docker-compose build
docker compose build
test:
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.1.5-alpine3.18 AS builder
FROM ruby:3.1.6-alpine3.20 AS builder
LABEL maintainer="Rapid7"

ARG BUNDLER_CONFIG_ARGS="set no-cache 'true' set system 'true' set without 'development test coverage'"
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
ms:
build:
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
ms:
image: metasploitframework/metasploit-framework:latest
Expand Down
4 changes: 2 additions & 2 deletions docker/bin/msfconsole
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ PARAMS="$@"

if [[ $PARAMS == *"--rebuild"* ]]; then
echo "Rebuilding image"
docker-compose build
docker compose build
exit $?
fi

docker-compose run --rm --service-ports -e MSF_UID=$(id -u) -e MSF_GID=$(id -g) ms ./msfconsole -r docker/msfconsole.rc "$PARAMS"
docker compose run --rm --service-ports -e MSF_UID=$(id -u) -e MSF_GID=$(id -g) ms ./msfconsole -r docker/msfconsole.rc "$PARAMS"

0 comments on commit b7a71b3

Please sign in to comment.