This message was deleted.
# general
s
This message was deleted.
👍 1
w
Screenshot of three pulumi projects loaded into neo4j: https://twitter.com/TomasJansson/status/1308024153711284228 The grey nodes are stacks, the big cluster of nodes to the right is things created when I added linkerd to kubernetes I think.
💯 1
l
I could have a go at creating a docker-compose.yml file to run neo4j and compile and run pulumigraph? I don't like to install things (like dotnet and neo4j) so if I can dockerize it, I do 🙂
w
you might not need to compile anything. If you have dotnet available in your container you should be able to just install the tool since I've published it on nuget.
l
Cool. I'll timebox an hour or so, and see how I go.
w
So you should be able to just run:
Copy code
dotnet tool install --global pulumigraph --version 0.1.0
to install it as a global tool in the container.
👍 1
I desperately need to sleep, but please post if you get it up. I think all the info you need should be in the readme in the repo.
👍 1
l
I've pushed to https://github.com/tenwit/pulumigraph/tree/dockerize. Unfortunately I have no F# skills (first time I've seen an F# app, actually 🙂) so I can't parameterize the connection string / host within the time I have available right now. Ping me tomorrow and we'll sort the localhost issue.
w
Made an update to the tool to allow options. Now it should be possible to specify connection string, user and password.
made another one since I noticed you wanted to specify host and port and not connection string. Now I support both
l
Thanks. I don't mind how I specify it 🙂
Hi again. I've pushed to the dockerize branch in my fork (https://github.com/tenwit/pulumigraph/tree/dockerize) and it looks like it's most of the way there. I've confirmed that
pulumi stack ls -a -j
is doing the right thing from inside the container, but I'm getting no output from pulumigraph, and nothing in the neo4j database. Here's a snippet of my docker-compose output:
The neoj4j webapp is running on http://localhost:7474, I can use it fine. Can you suggest what might be going wrong or where I should investigate? Happy to move this thread to GitHub, this might be best tackled using a GitHub issue...
w
I can check
I get some line ending issues... running windows, so I guess that is what is causing it
hm, same issue when trying to run it from wsl2:
Copy code
➜  pulumigraph git:(dockerize) docker-compose up
Starting pulumigraph_neo4j_1 ... done
Starting pulumigraph_pulumigraph_1 ... done
Attaching to pulumigraph_neo4j_1, pulumigraph_pulumigraph_1
pulumigraph_1  | ./wait-for-it.sh: line 3: $'\r': command not found
pulumigraph_1  | ./wait-for-it.sh: line 5: $'\r': command not found
pulumigraph_1  | ./wait-for-it.sh: line 6: syntax error near unexpected token `$'}\r''
'ulumigraph_1  | ./wait-for-it.sh: line 6: `echoerr() { if [[ $WAITFORIT_QUIET -ne 1 ]]; then echo "$@" 1>&2; fi }
pulumigraph_pulumigraph_1 exited with code 2
neo4j_1        | Fetching versions.json for Plugin 'apoc' from <https://neo4j-contrib.github.io/neo4j-apoc-procedures/versions.json>
neo4j_1        | Installing Plugin 'apoc' from <https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/4.1.0.2/apoc-4.1.0.2-all.jar> to /var/lib/neo4j/plugins/apoc.jar
but I can run the script directly in wsl2
fixed that part... I got the wrong endings out when I pulled the code on windows. When I then built the image it copied it the wrong file there and it wasn't a rebuild when I changed the file
I sent a PR to you with the fix so you get them and see what I did 🙂
I pulled in your additions @little-cartoon-10569, thanks a lot
Did you verify that it works @little-cartoon-10569 ?
l
No sorry, last I tried it wasn't doing anything. Didn't touch anything over the weekend. Have a meeting in 20 minutes, will get back onto it after that.
w
No problem, It works on my machine... and since when isn't that enough 😆
💯 1
l
Success!! I did
docker-compose build ; docker-compose up
on your
dockerize
branch and it all just worked 🙂
w
magic