• Register
0 votes
463 views

Problem :

While installing a docker project from github facing following issue
package context: unrecognized import path "context" (import path does not begin with hostname)
6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

This package context is only available in go versions 1.7 and after you try to check all the dockerfiles in your specified folders e.g. microservices-docker-go-mongodb-master in your link and change 

from golang:1.6 to golang:1.7

Next you need to change the port number of the db in your file docker-compose.yml

e.g.

from

image: mongo:3.3
container_name: cinema-db
ports:
  - "27017:27017"
volumes:
  - ./backup:/backup:rw 

to

ports:
- "27018:27018"

As you have already installed mongodb 27017 you must change it.

9 7 4
38,600 points

Related questions

0 votes
1 answer 839 views
839 views
Problem : This is the very first time that I am using Jenkins and I have gone through the several articles but unable to find any satisfactory answers. We have the .Net project, and we are using our private GitHub repository. ... hooks on GitHubRepositoryName[host=github.com,username=MyCompanyName,repository=reponame] at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:342)
asked Dec 27, 2019 alecxe 7.5k points
0 votes
1 answer 347 views
347 views
Problem : I wanted to commit to the Github desktop I am currently using windows 8.1 and this is my first time to commit using Github I only did it once on my Linux before that, but now I am getting following error Commit failed - exit code 128 received, and below ... find the git.exe I found the git.bat at below path are they the same? C:\Users\<username>\AppData\Local\GitHubDesktop\bin\git.bat
asked Dec 9, 2019 alecxe 7.5k points
0 votes
1 answer 2.3K views
2.3K views
Problem : I have the below problem when I just try to pull code, using my GIT Bash on windows Even after adding/removing the origin I am still facing the same error as below. Fatal: could not read Username for 'https://github.com': No such file or directory
asked Dec 19, 2019 alecxe 7.5k points
1 vote
1 answer 67 views
67 views
Problem : I am getting mime type error because its mime type ('text/plain') is not executable, and strict mime type checking is enabled.
asked Nov 11, 2019 peterlaw 6.9k points
0 votes
1 answer 3 views
3 views
Problem: I want to import a function from another file in the same directory. Sometimes it works for me with from .mymodule import myfunction but sometimes I get a: SystemError: Parent module '' not loaded, cannot perform relative import Sometimes it works with from ... and I couldn't find any explanation. This looks completely random. Could someone explain to me what's the logic behind all this?
asked 1 day ago Mashhoodch 6.7k points
1 vote
3 answers 2.7K views
2.7K views
Problem : I am very new to Python. Now I am trying to import my function from the another file in a same directory. I am able to do it sometimes with the use of .mymodule import myfunction but most of the times I face below error: Importerror: attempted relative ... . It seems completely random to me. I am looking for someone who is expert in Python and who can help me in fixing above error.
asked Apr 20, 2020 stewart 4k points
0 votes
1 answer 17 views
17 views asked Oct 2, 2020 SapperIt 1.2k points
1 vote
1 answer 42 views
42 views
Problem: I am very new to Github. I have recently started working on Github. My Github is showing me below error on one of the repositories: We found a potential security vulnerability in one of your dependencies. A dependency defined in ./package-lock.json has known ... I am unable to see any other ways to fix above Github related issue. Kindly guide me in fixing my above Github related issue.
asked Jun 1, 2020 Martin K 6.6k points