fusion-core | Migrated to https : //github.com/fusionjs/fusionjs | Data Migration library
kandi X-RAY | fusion-core Summary
kandi X-RAY | fusion-core Summary
Migrated to
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Swagger body template function .
- Load environment variables .
- Create the middleware for the request .
- Get a synchronous chunk scripts .
- Dispatch next middleware .
- Creates an array of URLs from the source files .
- Get the current time .
- Convert a glob context into a glob context .
- Get preload hints for a page
- Registers a plugin in the framework .
fusion-core Key Features
fusion-core Examples and Code Snippets
Community Discussions
Trending Discussions on fusion-core
QUESTION
I am using Jenkins to build and deploy a .Net Core microservice application. For each microservice, I am building a docker container. My dockerfile has the following in it:
ARG source
COPY ${source:-obj/Docker/publish} .
Prior to upgrading from .Net Core 2.2 to 3.1, this worked. After the upgrade, when I try to deploy, I am getting the following error:
COPY failed: stat /var/lib/docker/tmp/docker-builder609391151/obj/Docker/publish: no such file or directory script returned exit code 1
From what I've read, it looks like .Net Core 2.2 compiled into the /obj/Docker/publish directory, but .Net Core 3.1 compiles into the /bin/Release/netcoreapp3.1 directory, however the source is still pointing to /obj/Docker/publish. I'm trying to figure out where the source arguement is defined, and how I should change this.
Update:
I decided to leave the source out entirely and hard-code the build path. I changed the copy line to
COPY /var/lib/jenkins/jobs/fusion-core/branches/master/workspace/src/CustomerAPI/obj/Release/netcoreapp3.1 .
I'm still getting an error when I try to build the docker container that says
COPY failed: stat /var/lib/docker/tmp/docker-builder356954794/var/lib/jenkins/jobs/fusion-core/branches/master/workspace/src/CustomerAPI/obj/Release/netcoreapp3.1: no such file or directory script returned exit code 1
I'm not sure where the "/var/lib/docker/tmp/docker-builder356954794" is coming from, or why it is appending it to the front of my path, but it doesn't exist.
Still not sure how to get around this.
...ANSWER
Answered 2020-Jul-07 at 21:32Some debugging suggestions in no certain order.
Default Value${source:-obj/Docker/publish}
is bash syntax that evaluates to the value of the variable source
if it was defined, or obj/Docker/publish
if it was not.
I'm trying to figure out where the
source
argument is defined, and how I should change this.
If you can't find anything that defines it to another value, it just means that the default value obj/Docker/publish
was being used.
3.1 still uses the publish
directory, but it will be at bin/Release/netcoreapp3.1/publish
. Use a RUN find -type d -iname publish
to find the publish directories in your container.
Dont use the full path, it will change every build. See the tmp/docker-builder356954794
in the path?
The COPY
command uses relative files, based on the path in your machine (outside the docker container). So use a path that's relative to where the context directory (or Dockerfile
) is. If the dockerfile is at /var/lib/jenkins/jobs/fusion-core/branches/master/workspace/src/CustomerAPI/Dockerfile
and the publish directory on your machine is at /var/lib/jenkins/jobs/fusion-core/branches/master/workspace/src/CustomerAPI/bin/Release/netcoreapp3.1/publish
, then use a COPY
command like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fusion-core
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page