Skip to content
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

Study how to use backup restored from different domain #695

Closed
skabashnyuk opened this issue Sep 7, 2016 · 2 comments
Closed

Study how to use backup restored from different domain #695

skabashnyuk opened this issue Sep 7, 2016 · 2 comments

Comments

@skabashnyuk
Copy link
Contributor

We have two use cases.

  • After some time we decided to change domain of codenvy installation
  • We want to restore backup of existed installation and use it for testing.
    In both cases domain will be changed.
    Right now we know what will be some issues with data because some object contains links or references on domain.
    DOD of this issue
    • Find out the list of link or other entities linked to domain.
    • Make a list of tasks or other activities to be able to handle activities listed above.
@skabashnyuk skabashnyuk changed the title Study what to use data restored from different domain Study how to use data restored from different domain Sep 7, 2016
@skabashnyuk skabashnyuk changed the title Study how to use data restored from different domain Study how to use backup restored from different domain Sep 7, 2016
@mkuznyetsov mkuznyetsov self-assigned this Oct 19, 2016
@mshaposhnik
Copy link
Contributor

mshaposhnik commented Oct 24, 2016

We know such list of places where full URL is used:
#1. (rare) Factory predefined commands for Bower/Gulp projects:
Example:

COPY command (id, commandline, name, type, commands_id) FROM stdin;
.....
120     ([ -d /projects/dashboard/node_modules ] || (echo "Initializing NPM dependencies..." && mv /tmp/clone/dashboard/node_modules /projects/dashboard/)) &&  ([ -d /projects/dashboard/bower_components ] || (echo "Initializing Bower dep
endencies..." && mv /tmp/clone/dashboard/bower_components /projects/dashboard/)) && umask 0 && cd /projects/dashboard/ && gulp serve --server http://nightly4.codenvy-stg.com   run     custom  119

#2. (frequent) Recipe links in environments:

COPY environment (id, content, contenttype, location, type, environments_id, environments_key) FROM stdin;
2       \N      text/x-dockerfile       http://beta.codenvy.com/api/recipe/recipe41q6skmejibe0w1h/script        dockerfile      1       wksp-3zd4
7       \N      text/x-dockerfile       http://beta.codenvy.com/api/recipe/recipe0m7d57350akrs1xg/script        dockerfile      4       Classic-Workspace
30      \N      text/x-dockerfile       http://beta.codenvy.com/api/recipe/recipennzwzu0utelfd7oi/script        dockerfile      27      wksp-aspnet

#3. (rare) Content of recipes:

recipeaaxolxgghkf4hzo5  user950btzcqlg34hqvp      rcp-v081        { "attributes": {    "updated": "1464604933048",    "created": "1464599800574"\n  },\n  "namespace": "user950btzcqlg34hqvp",\n  "temporary": false,  "id": "
....<SKIP>....
 "config.env": "[CHE_LOCAL_CONF_DIR=/mnt/che/conf, CHE_API_ENDPOINT=http://beta.codenvy.com/api, CHE_PROJECTS_ROOT=/projects, CHE_WORKSPACE_ID=workspaceiatc0pnn4jkv540v, USER_TOKEN=rjaOrTzrii8q0yz4GnvfKznWrmLCzjLjmmvHviS

@skabashnyuk
Copy link
Contributor Author

skabashnyuk commented Oct 26, 2016

So basically we need to change #2 all other is user content. Will be fixed in eclipse-che/che#2769

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants