Unable to remove dependencies
Hi , @tinrab I'm unable to host the project (which follow the same structure of yours project ) on jenkins (kubernetes) and also unable to remove dependencies as in API gate way (graphql ) you implemented other services also but when docker file run over jenkins it unable to import other services as these are the part of other git repos . will you suggest how to overcome this problem. how to make micro services without any dependencies.
Sorry, Dockerfiles were incorrect. Fix is in the latest master branch.
I've replaced go build ... with GO111MODULE=on go build -mod vendor .. and copied go.mod and go.sum into Docker image.
This makes go build actually use modules, which wasn't the case before.
@tinrab thanks for quick response .
But my question is im using gitlab and my api gate way is another repository and other services in other repositories (individually) so i'm fetching the issue while deploying the project over jenkins .
Reason is api gate imports other services also and that repository there is no parent repository on locally project is running good but not over jenkins problem is in below code
COPY vendor vendor COPY account account COPY catalog catalog COPY order order
because API GATE way repo over gitlab not have parent directory
account is in another repository and other services in another repository

above is my repository structure. Now suggest my how to deploy the project because each service is in different repository and i want to run separately over jenkins. Please help
Should work if you've correctly set up vendoring. Maybe try deleting go.mod, go.sum and vendor directory. Then run go mod init and go mod vendor in every repository.
I did go mod init and go mod vendor
But failed at command Copy account account
On Sun, 23 Feb, 2020, 7:05 PM Tin Rabzelj, [email protected] wrote:
Should work if you've correctly set up vendoring. Maybe try deleting go.mod, go.sum and vendor directory. Then run go mod init and go mod vendor in every repository.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tinrab/spidey/issues/10?email_source=notifications&email_token=AG6S6JYJGUISI7LICVGGYGDREJ3RNA5CNFSM4KZPMXL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMV36GY#issuecomment-590069531, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG6S6J6JWBHZQZT3XIULIUTREJ3RNANCNFSM4KZPMXLQ .
Umm, well COPY account copies account package into the container. You'll need to modify Dockerfiles for your project.
@tinrab , I got your point but problem is when i deploy my code on production. That's the only issue . On local irt works well
@tyagip966 Sorry, I would probably need to see your source files to see what's wrong. If Go modules are correctly set up, the build on Jenkins shouldn't try to pull any dependencies.