ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder

Encrypt in "temporary" Docker Container

Author Message
gavro



Joined: 03 Oct 2016
Posts: 2

PostPosted: Mon Oct 03, 2016 3:48 pm    Post subject: Encrypt in "temporary" Docker Container Reply with quote

I've been holding of on purchasing a full license, as I'm still trying to figure out if the following scenario would work:
  • PHP code resides in a git repo
  • Deployments from this git repo should contain encrypted code only
  • Deployments are handled by temporarily created Docker containers, which download the source code, encrypt the necessary PHP files and *then* upload the files to a certain staging and/of production environment.


The thing is: This docket container could be created from scratch every single time. Would the automatic "acquire license" call (./ioncube_encoder --acquire-license) work at all with this setup? Would the docker setup require something so that it get's treated as "the same server for that previously created licence"? For example: a fixed MAC address?

Of could we "recall the license" at the end of 1 run and re-run the "--acquire-license" call every single docker boot-up? Or could be simply copy a license file form a specific location?

EDIT: I see that you would have to use a lic.txt file when manually requesting a license. Could this file be destroyed/created every time the container goed down/up? Would that work?
Back to top
View user's profile Send private message
alastair



Joined: 23 Feb 2010
Posts: 190

PostPosted: Tue Oct 04, 2016 11:34 am    Post subject: Reply with quote

Hi,

I think that the best thing to do for your set up would be to release the Encoder license each time the Docker container went down. So at shutdown of the Docker Container you would have:

<path to encoder>/ioncube_encoder.sh -56 --release-license

Similarly, when the Docker container was booted you would have:

<path to encoder>/ioncube_encoder.sh -56 --acquire-license

Please let us know if that would work for you. It may be better to create a ticket in our Support Help Desk, at http://support.ioncube.com in order to get the speediest replies. Please create the ticket for the "Sales" department.
_________________
Alastair

ionCube
Back to top
View user's profile Send private message
gavro



Joined: 03 Oct 2016
Posts: 2

PostPosted: Fri Nov 25, 2016 12:28 am    Post subject: Reply with quote

Hi Alastair,

Thank you for the tips. It works like a charm; doing encryption in a clean docker container is working as it should on every run/deployment using acquire & release.
Back to top
View user's profile Send private message
ticketbest



Joined: 22 May 2017
Posts: 1

PostPosted: Mon May 22, 2017 11:12 am    Post subject: Reply with quote

How to ru in docker container ionCube Encode?

Command ends without output any messages:
ioncube_encoder.sh -56 file.php -o file.encode

docker image ubuntu
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum