microsoft / restler-fuzzer

RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.
MIT License
2.62k stars 303 forks source link

Fail to docker image on Ubuntu 2204 #840

Open dashuaic opened 1 year ago

dashuaic commented 1 year ago

Description

On Ubuntu 2204, In the root of this repo, run

docker build -t restler .

and got fail as below

Steps to reproduce

just run "docker build -t restler ." will got error like below

Expected results

build image successful

Actual results

 => ERROR [target 2/4] RUN apk add --no-cache python3 py3-pip                                                                                                                    481.2s
 => CANCELED [builder 2/7] RUN apk add --no-cache python3 py3-pip                                                                                                                401.3s
------                                                                                                                                                                                  
 > [target 2/4] RUN apk add --no-cache python3 py3-pip:
0.426 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
240.8 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.18/main: Permission denied
240.8 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
481.1 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.18/community: Permission denied
481.1 ERROR: unable to select packages:
481.1   py3-pip (no such package):
481.1     required by: world[py3-pip]
481.1   python3 (no such package):
481.1     required by: world[python3]
------
Dockerfile:15
--------------------
  13 |     FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine as target
  14 |     
  15 | >>> RUN apk add --no-cache python3 py3-pip
  16 |     RUN pip3 install requests applicationinsights
  17 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apk add --no-cache python3 py3-pip" did not complete successfully: exit code: 2

Environment details

docker version Client: Docker Engine - Community Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:07:41 2023 OS/Arch: linux/amd64 Context: default

git log -n 1 commit 599d0b8202ea5a97b59ad628f50cd6e1333bf118 (HEAD -> main, tag: v9.2.3, tag: latest-main, tag: latest, origin/main, origin/HEAD) Author: marina-p marinapo@microsoft.com Date: Tue Nov 14 02:20:48 2023 -0800

Update RESTler version to 9.2.3 (#837)

Updates in this version:
- bug fixes
- enable structured logging to trace database