-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add two example apps that use nginx php8.2 and the sdk proxy #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks like there are some failing tests reported by the Harness Tests suite? I'm not sure if those are okay or not, but let me know if you want me to update anything! |
|
Hey @dakotawashok thanks so much for submitting this PR! Our "virtual office" is closed this week, we will be sure to dig into it next week when everyone is back. |
|
Further investigation shows this is due to a file permissions issue for the raw socket file: This is an awesome contribution for the repo! |
|
Hello @JamieSinn / @jonathannorris ! As for this PR, though, I still think it'd be good to have a variety of example setups in this project for others to use and build off of. If yall agree, I'd love to get this in here still. Is there anything you need me to update on my end? |
|
Absolutely, I'd love to get it in here. I think for tweaks, making the socket available under 777 would be a quick fix, somehow part of the docker compose setup or a docker file edit. With that, it works and we can merge the rest as is! |
fix: alter devcycle udp socket file permissions in example app
|
Hey @JamieSinn I've altered the Supervisord configuration in the UDP example app to alter the socket file permissions after startup. Please take a look and let me know if you want anything else updated! |
|
Hey @dakotawashok - are you able to update the example apps to use the new init flow? |
|
@JamieSinn I'll take a look and integrate it with these example apps once I'm able to hop back onto this, sorry for the wait! |
|
No rush! Thank you! |
fix: alter devcycle udp socket file permissions in example app
…ocumentation in readme
…e docker compose configuration file
|
I've got the issues you've pointed out resolved, could you take another look at this @JamieSinn ? I'll test again in the morning, but I think these changes are good to go! Let me know if you'd like me to resolve the unit tests that are failing, as I can't remember if they were a part of the Checks in this repo when I originally opened this haha |
|
Looks great, I'll take a shot at testing it when I'm in the office |
…p proxy to use only one slash
|
@JamieSinn can you please try this again, replacing the sdk in the docker-compose files with a proper key? This should be ready for review. |
| { | ||
| "sdkKey": "${DEVCYCLE_SDK_KEY}", | ||
| "unixSocketPath": "/tmp/dvc_lb_proxy.sock", | ||
| "unixSocketEnabled": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "unixSocketEnabled": true, | |
| "unixSocketEnabled": true, | |
| "unixSocketPermissions": 777, |
You'll need to set the file perms here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the extra commands from the supervisord configuration and I'm testing this functionality now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JamieSinn Is this configuration option supposed to negate the need to alter the socket file permissions after the proxy command is run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not able to get the actual variable value when using this configuration option and removing the extra commands for altering the socket file permissions, which is why I ask.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm - that's odd - let me do a quick test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll push up the changes I used to test that, I think that'd help, and I can resolve any issues afterward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good. I have a feeling this might be on my implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep - looks like that was on me. I fixed it to now support octal perms. 1.1.1 will fix it
|
@JamieSinn I'm still getting an issue, even with updating the proxy package to 1.1.1. Here's the error I get when running the command now, a new error: I tried Here's the results of the udp variable test. Interestingly, the webpage still is loading without a devcycle error being reported, even though the proxy isn't apparently running: |
ah my bad - I forgot to say you'll need to change that param to be a string, |
|
Woohoo! That worked! I'm able to get our variable successfully now on both proxy hello world examples. If this is good to go for yall, please feel free to merge in. |





Enhancement: New PHP 8.2 Hello World Examples with Nginx, Docker-Compose, and DevCycle Proxy
This Pull Request introduces two new Hello World applications for our PHP SDK, setup with PHP 8.2 and integrated with nginx, docker-compose, and the DevCycle Local Bucketing Proxy.
Key Changes:
Looking forward to your feedback on these enhancements.
Dakota Washok
Senior Software Engineer/DevOps Engineer