delfer / docker-alpine-ftp-server

Small and flexible docker image with vsftpd server
186 stars 131 forks source link

Cant store files when starting integration test on gitlab runner #46

Open apb12 opened 1 year ago

apb12 commented 1 year ago

Hi, i use this server in testcontainer and everythig works good when it on my local pc , but if i run build on gitlab test fails with this logs image

i tried to add this evn pasv_promiscuous=yes to code, but it does not help

ftp = new FixedHostPortGenericContainer<>( "delfer/alpine-ftp-server:latest") .withExposedPorts(PORT) .withFixedExposedPort(freePort, freePort) .withEnv("USERS", USER + "|" + PASSWORD) .withEnv("MIN_PORT", String.valueOf(freePort)) .withEnv("MAX_PORT", String.valueOf(freePort)) .withEnv("CONF_SET_PARMS","pasv_promiscuous=yes");

delfer commented 10 months ago

Hello @apb12 ! It's look like you didn't set the correct ADDRESS env variable. At the same time CONF_SET_PARMS does not implemented and have no effect. If you want to change any parameter, you should replace vsftpd.conf file inside the container.