Comments (4)
thanks for the great resources. I just tried it again and it appears the issue was entirely on my end.
from ktoreasy.
The user number "1033" has to be the ID of an already existing user in "your system" (Docker host machine), with access to the folders where you are going to run container's volumes. For security reasons, and also to delimit what a container can do, it is better to not execute your commands with root user.
So the only other reason (out of security) is to be sure that user that runs commands in container can make use of volume's folder (with the correct rights there).
Related with openjdk:11-jre-slim problem, I think you don't have that user ID in your system so this is why this is failing. You need to define a new user (or use an existing one), create host machine volume folders with that user and then change "1033" by your user's ID. I hope this helps.
Please let me know if you have other questions.
from ktoreasy.
sorry for the long break, I'm using this to get to terms with ktor and kotlin simultaneously in my off time.
Anyway,
The user number "1033" has to be the ID of an already existing user in "your system"
Is the user id 1033
in any way significant? I'm running (my own version of this) on linux as the root user (since it's just a side-project, I'm not worried about security), but I supposed I could try and run this as "me". Do you think it'd be possible to make the start up scripts use a combination of whoami
and id -u
to get the current user ID? That way anyone checking this architecture out doesn't have to create a use just to get it up and running.
On another note, I've noticed a utter and complete lack of useful guides/tutorials in the realm of ktor. Have you thought about making a series about this? It seems to have a good approach and includes all the crud basics.
from ktoreasy.
Is the user id 1033 in any way significant?
That id 1033 is just the user id, you can use the one you prefer, as long as it has permissions in the folders you will use for reading/writing in the host machine from Docker.
Do you think it'd be possible to make the start up scripts use a combination of whoami and id -u to get the current user ID?
It may be possible, I'm open for suggestions/improvements, so if you give it a chance, make a PR and I will be happy to add this to the codebase.
On another note, I've noticed a utter and complete lack of useful guides/tutorials in the realm of ktor
This is my Medium account, I have some articles there explaining this repository: https://medium.com/@math21
This is a nice video from Ryan Harter from Kotlinconf 2018 explaining Ktor: https://www.youtube.com/watch?v=V4PS3IjIzlw
You also have documentation here: https://ktor.io/docs/creating-http-apis.html
And a live chat in Slack: https://kotlinlang.slack.com/messages/ktor/
All people in that chat is really helpful, so you can get your questions solved.
sorry for the long break, I'm using this to get to terms with ktor and kotlin simultaneously in my off time.
No worries, this was also my "hobby". I'm an Android developer, not Backend :D
from ktoreasy.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ktoreasy.