go-todo | Simple API using Gin and Gorm to get a feel | REST library
kandi X-RAY | go-todo Summary
kandi X-RAY | go-todo Summary
Simple API using Gin and Gorm (Postgres) to get a feel for Golang
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Init the database
- main is the main entrypoint .
- CreateTask creates a new task
- UpdateTask updates a task
- DeleteTask from database
- GetTasks returns a list of tasks
- getEnv returns the value of key or fallback if not found
- BeforeCreate before creation
- GetDB get db
- CloseDB closes database connection .
go-todo Key Features
go-todo Examples and Code Snippets
Community Discussions
Trending Discussions on go-todo
QUESTION
I am just getting started learning docker a few hours ago and I trying to make my own docker image. When I tried to make a Dockerfile and a docker image, I got this error message "/bin/sh: 1: source: not found".
First of all, I manage my environment variables in .env file. Whenever I change my env file, I run this command $source .env and go build . and then go run main.go. So, I tried to set up my Dockerfile, RUN source.env but I got the error that I mentioned above.
I tried
- RUN . setting.env & . setting but didn't work
- change the file name into setting.env and then RUN . ./setting.env & . ./setting & ["/bin/bash", "-c", "source ~/.setting.env"] also didn't work...
I really appreciate your help!
Edit 1]
...ANSWER
Answered 2022-Mar-01 at 06:47It seems like .env file is not contained in your image.
Try to execute source .env after copying .env file into the image.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install go-todo
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