#### Category : caching

I am struggling to find a way to cache all dependencies and binary files, downloaded during the build script (including building DB content). What I am aiming at -> docker-compose file with two images – one that has to be built and another image (currently nginx) which to catch all the traffic from the first ..

Read more

I’m trying to make faster Dockerfile by copying whole directory (including vendor), but when I tried to run it, it always redownload vendor again and again, unlike in local: FROM golang:1.14-alpine AS builder RUN apk –update add ca-certificates git make g++ ENV GO111MODULE=on WORKDIR /app RUN go get github.com/go-delve/delve/cmd/dlv COPY . . RUN go mod ..

Read more

I’m trying to make faster Dockerfile by copying whole directory (including vendor), but when I tried to run it, it always redownload vendor again and again, unlike in local: FROM golang:1.14-alpine AS builder RUN apk –update add ca-certificates git make g++ ENV GO111MODULE=on WORKDIR /app RUN go get github.com/go-delve/delve/cmd/dlv COPY . . RUN go mod ..

Read more

I want to write a multi-stage Dockerfile for a multi-module Maven project, so that Maven dependencies are cached in the early Docker layers of a builder stage and also how to use a layered JAR to create cache layers in the final Docker image. In this project the user-app module depends on a common module. ..

Read more

I’m using the official Docker-registry image to serve as a pull-through cache. I tried to start it as simple as possible, to minimize sources of error. $docker run –rm -p 5000:5000 –env REGISTRY_PROXY_REMOTEURL="https://registry-1.docker.io" –env REGISTRY_LOG_LEVEL=debug registry Only the proxy option is set, to make the cache pull-through. However pulling through doesn’t seem to want .. Read more When running Symfony 5 on a read-only filesystem, with caches pre-generated, everything seems to work. But there are various log entries like these: 15:29:11 WARNING [cache] Failed to save key "%5BApp%5CEntity%5CAddress%5C%24GEDMO_TIMESTAMPABLE_CLASSMETADATA%5D%5B1%5D" of type array: fopen(/code/var/cache/prod/pools/VPOqRtOijV/82b6c3d711e9): failed to open stream: Permission denied ["key" => "%5BApp%5CEntity%5CAddress%5C%24GEDMO_TIMESTAMPABLE_CLASSMETADATA%5D%5B1%5D","exception" => ErrorException { …},"cache-adapter" => "SymfonyComponentCacheAdapterPhpFilesAdapter"] 15:29:11 WARNING [cache] Failed to .. Read more I receive this error on my ASP.NET Core docker: An assembly specified in the application dependencies manifest (ZoodExchange.UserApi.Api.deps.json) was not found: package: ‘Microsoft.AspNetCore.Authentication.JwtBearer’, version: ‘3.1.12’ path: ‘lib/netcoreapp3.1/Microsoft.AspNetCore.Authentication.JwtBearer.dll’ While I see that NuGet has cached this library in the following path: ~/.local/share/NuGet/v3-cache/1ca707a4d90792ce8e42453d4e350886a0fdaa4d$ps:_api.nuget.org_v3_index.json And I see these files in that path: list_microsoft.aspnetcore.authentication.jwtbearer.dat nupkg_microsoft.aspnetcore.authentication.jwtbearer.3.1.12.dat How should I fix ..

Read more

if a user comes online to web application platform, cache all his results, so that we serve for him really fast. Any workaround by nginx or caching lambda, api gateway. we use Beanstalk dockerized html application running on nginx. Source: Docker..

Read more

We have such Dockerfile: FROM alpine:latest as step1 RUN echo "STEP1" FROM alpine:latest as step2 RUN echo "STEP2" FROM step1 as step3 RUN echo "STEP3" On Windows (or on WSL2) we have such results for building multi-stage images. Building all steps on Windows: \$ docker build . [+] Building 0.2s (7/7) FINISHED => [internal] load ..

Read more

Kinda fundamental question: I’m currently trying to export my cache from a redis-container to a redis-cache on a different device by saveing the current keys, export the the .rdb file to a volume on the other device. But restarting the redis-container/server doesn’t load the "new" database from the imported .rdb file (I guess it’s correctly ..

Read more